diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-04-03 22:30:59 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-04-03 22:30:59 +0200 |
| commit | 9a7af1110889036fd88914fe49e65c03dbc01784 (patch) | |
| tree | acc74a9b4d87377a7d0d3e525cb651868e4ee803 /src/Fl_cocoa.mm | |
| parent | 717a7d266b629233255ae0816c5eac8832bd17fb (diff) | |
Silence compiler warnings [-Wunused-but-set-variable]
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index d978ebfc1..722472eed 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1775,6 +1775,7 @@ void Fl_Cocoa_Screen_Driver::open_display_platform() { // We create a thread that does nothing so it completes very fast: [NSThread detachNewThreadSelector:@selector(doNothing:) toTarget:[FLWindowDelegate singleInstance] withObject:nil]; } + (void)localPool; // silence warning } } @@ -3021,8 +3022,6 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() } int xp = w->x(); int yp = w->y(); - int wp = w->w(); - int hp = w->h(); int xwm = xp, ywm = yp, bt, bx, by; @@ -3040,10 +3039,6 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow() winlevel = non_modal_window_level(); } - if (by+bt) { - wp += 2*bx; - hp += 2*by+bt; - } if (force_position()) { if (!Fl::grab()) { xp = xwm; yp = ywm; |
