1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 22:28:02 +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

@@ -105,6 +105,9 @@ int wMessageDialog(WScreen *scr, const char *title, const char *message, const c
static void toggleSaveSession(WMWidget *w, void *data)
{
/* Parameter not used, but tell the compiler that it is ok */
(void) data;
wPreferences.save_session_on_exit = WMGetButtonSelected((WMButton *) w);
}
@@ -715,6 +718,9 @@ static void drawIconProc(WMList * lPtr, int index, Drawable d, char *text, int s
RColor color;
int x, y, width, height, len;
/* Parameter not used, but tell the compiler that it is ok */
(void) index;
if (!panel->preview)
return;
@@ -1500,6 +1506,9 @@ static void okButtonCallback(void *self, void *clientData)
{
CrashPanel *panel = (CrashPanel *) clientData;
/* Parameter not used, but tell the compiler that it is ok */
(void) self;
panel->done = True;
}