Silence false positive gcc warning (#682)
... and fix a typo. This warning was reported for gcc 12.2 (MinGW-w64 / MSYS2) but may have appeared in earlier gcc versions (gcc 9.4 is not affected). It's very likely that this warning needs '-O2' or '-O3' to be issued.
This commit is contained in:
parent
04d8f6eeac
commit
ce45bcae2f
@ -243,9 +243,9 @@ void Fl_Tabs::handle_overflow_menu() {
|
||||
int nc = children();
|
||||
int H = tab_height(); if (H < 0) H = -H;
|
||||
int i, fv=-1, lv=nc; // first and last visible tab
|
||||
if (nc==0) return;
|
||||
if (nc <= 0) return;
|
||||
|
||||
// count visibel children
|
||||
// count visible children
|
||||
for (i = 0; i < nc; i++) {
|
||||
if (tab_pos[i]+tab_offset < 0) fv = i;
|
||||
if (tab_pos[i]+tab_width[i]+tab_offset <= w()-H) lv = i;
|
||||
|
Loading…
Reference in New Issue
Block a user