mirror of
https://github.com/gryf/wmaker.git
synced 2026-04-07 16:23:33 +02:00
WINGs: Marked args as unused for compiler in event 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:
committed by
Carlos R. Mafra
parent
237c386fdc
commit
ea74fe8871
@@ -480,6 +480,9 @@ static void paintItem(WMList * lPtr, int index, Drawable d, char *text, int stat
|
||||
WMColor *backColor = ((state & WLDSSelected) ? scr->white : view->backColor);
|
||||
int width, height, x, y, textLen;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) index;
|
||||
|
||||
width = rect->size.width;
|
||||
height = rect->size.height;
|
||||
x = rect->pos.x;
|
||||
|
||||
Reference in New Issue
Block a user