From 0118906a85ad7f1e9beaccd7b5ff1147e44f4a24 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 13 Oct 2013 22:44:02 +0200 Subject: [PATCH] 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 --- src/rootmenu.c | 3 +++ src/superfluous.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/rootmenu.c b/src/rootmenu.c index 10e2397d..d508c062 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 e33e6eb7..0883cc11 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 }