1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

wmaker: Marked args as unused for compiler in WINGs callback code

The WINGs toolkit dispatch events on widgets using callbacks, which means
having a fixed argument list for the handling function.

It is then correct to not use all the arguments, so this patch adds the
appropriate stuff to avoid a false report from compiler.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-10-13 22:44:10 +02:00
committed by Carlos R. Mafra
parent 6948a9f2fe
commit f0b8be0aed
3 changed files with 18 additions and 0 deletions

View File

@@ -813,6 +813,9 @@ static void revertSettings(WMWidget *button, void *client_data)
int i, n, workspace, level;
char *wm_instance = NULL, *wm_class = NULL;
/* Parameter not used, but tell the compiler that it is ok */
(void) button;
if (panel->instRb && WMGetButtonSelected(panel->instRb) != 0)
wm_instance = wwin->wm_instance;
else if (panel->clsRb && WMGetButtonSelected(panel->clsRb) != 0)
@@ -1020,6 +1023,9 @@ static void selectWindow(WMWidget *bPtr, void *data)
XEvent event;
WWindow *iwin;
/* Parameter not used, but tell the compiler that it is ok */
(void) bPtr;
if (XGrabPointer(dpy, scr->root_win, True,
ButtonPressMask, GrabModeAsync, GrabModeAsync, None,
wPreferences.cursor[WCUR_SELECT], CurrentTime) != GrabSuccess) {