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

WINGs: Marked args as unused for compiler in a few more callback functions

As callback have a fixed prototype, it is 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-19 22:17:56 +02:00
committed by Carlos R. Mafra
parent ea74fe8871
commit bd58625a3f
4 changed files with 37 additions and 0 deletions

View File

@@ -10,6 +10,10 @@ typedef struct W_IMContext {
static void instantiateIM_cb(Display * display, XPointer client_data, XPointer call_data)
{
/* Parameter not used, but tell the compiler that it is ok */
(void) display;
(void) call_data;
W_InitIM((W_Screen *) client_data);
}
@@ -18,6 +22,9 @@ static void destroyIM_cb(XIM xim, XPointer client_data, XPointer call_data)
W_Screen *scr = (W_Screen *) client_data;
W_View *target;
/* Parameter not used, but tell the compiler that it is ok */
(void) call_data;
if (scr->imctx->xim != xim)
return;