mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
wmaker: Marked args as unused at places where conditional code is used
There are a few cases in the code where conditional compiling can lead, when the corresponding block is not activated, to some arguments not being used. This patch adds the proper stuff to avoid a false report from the compiler. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
30fd8a1f75
commit
0118906a85
@@ -1509,6 +1509,9 @@ static WMenu *configureMenu(WScreen * scr, WMPropList * definition, Bool include
|
|||||||
wMenuEntrySetCascade(menu, mentry, submenu);
|
wMenuEntrySetCascade(menu, mentry, submenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
/* Parameter not used, but tell the compiler that it is ok */
|
||||||
|
(void) includeGlobals;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 1; i < count; i++) {
|
for (i = 1; i < count; i++) {
|
||||||
|
|||||||
@@ -176,6 +176,9 @@ void DoWindowBirth(WWindow *wwin)
|
|||||||
center_y = wwin->frame_y + (height - h) / 2;
|
center_y = wwin->frame_y + (height - h) / 2;
|
||||||
|
|
||||||
animateResize(scr, center_x, center_y, 1, 1, wwin->frame_x, wwin->frame_y, width, height);
|
animateResize(scr, center_x, center_y, 1, 1, wwin->frame_x, wwin->frame_y, width, height);
|
||||||
|
#else
|
||||||
|
/* Parameter not used, but tell the compiler that it is ok */
|
||||||
|
(void) wwin;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user