1
0
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:
Christophe CURIS
2013-10-13 22:44:02 +02:00
committed by Carlos R. Mafra
parent 30fd8a1f75
commit 0118906a85
2 changed files with 6 additions and 0 deletions

View File

@@ -1509,6 +1509,9 @@ static WMenu *configureMenu(WScreen * scr, WMPropList * definition, Bool include
wMenuEntrySetCascade(menu, mentry, submenu);
}
}
#else
/* Parameter not used, but tell the compiler that it is ok */
(void) includeGlobals;
#endif
for (i = 1; i < count; i++) {

View File

@@ -176,6 +176,9 @@ void DoWindowBirth(WWindow *wwin)
center_y = wwin->frame_y + (height - h) / 2;
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
}