From 6fee0c5765883427c49837f14289dda526919d9d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 14 Apr 2015 12:45:22 +0000 Subject: Fix compilation warnings: "... may be used uninitialized". git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/screen_xywh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index f8626fc3f..a0a18890e 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -358,7 +358,7 @@ int Fl::screen_num(int x, int y, int w, int h) { int best_screen = 0; float best_intersection = 0.; for (int i = 0; i < Fl::screen_count(); i++) { - int sx, sy, sw, sh; + int sx = 0, sy = 0, sw = 0, sh = 0; Fl::screen_xywh(sx, sy, sw, sh, i); float sintersection = fl_intersection(x, y, w, h, sx, sy, sw, sh); if (sintersection > best_intersection) { -- cgit v1.2.3