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
This commit is contained in:
parent
4db77674c3
commit
8bc8a2fc34
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user