diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-23 11:33:43 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-23 11:33:43 +0000 |
| commit | 8bc8a2fc34afffd2ad95b2df36c46369c2b01e2b (patch) | |
| tree | d266393d16ba8a3767175a3de6da78bc33d0de0a /src | |
| parent | 4db77674c3622bccea2ec13bcb940964034676f2 (diff) | |
Fix potential compiler warning, seen under MinGW with gcc 4.8.1.
In fact this warning is a false positive, but fixed anyway.
Warning was: x, y may be used uninitialized (or similar).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_GDI_Printer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx index edeb86ef6..7247da350 100644 --- a/src/Fl_GDI_Printer.cxx +++ b/src/Fl_GDI_Printer.cxx @@ -160,7 +160,7 @@ void Fl_System_Printer::absolute_printable_rect(int *x, int *y, int *w, int *h) void Fl_System_Printer::margins(int *left, int *top, int *right, int *bottom) { - int x, y, w, h; + int x = 0, y = 0, w = 0, h = 0; absolute_printable_rect(&x, &y, &w, &h); if (left) *left = x; if (top) *top = y; |
