summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-14 12:45:22 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-14 12:45:22 +0000
commit6fee0c5765883427c49837f14289dda526919d9d (patch)
treedd83d4377a8e52c25be73e3684116d6e6c71d015 /src
parent0663c45e9c9c1302485d94e6272ae746c7f07d0e (diff)
Fix compilation warnings: "... may be used uninitialized".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/screen_xywh.cxx2
1 files changed, 1 insertions, 1 deletions
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) {