From 8bc8a2fc34afffd2ad95b2df36c46369c2b01e2b Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 23 Oct 2014 11:33:43 +0000 Subject: 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 --- src/Fl_GDI_Printer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3