From: Christophe CURIS <[email protected]> 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 <[email protected]> --- src/rootmenu.c | 3 +++ src/superfluous.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/rootmenu.c b/src/rootmenu.c index 10e2397..39d7cc7 100644 --- a/src/rootmenu.c +++ b/src/rootmenu.c @@ -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++) { diff --git a/src/superfluous.c b/src/superfluous.c index e33e6eb..752162a 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -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 } -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
