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 XCloseEvent callback code

The toolkit dispatches window close request events using callback
functions, which means having a fixed argument list for that 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:07 +02:00
committed by Carlos R. Mafra
parent 3857def779
commit f45d57ff16
2 changed files with 14 additions and 0 deletions

View File

@@ -222,6 +222,10 @@ static void destroyInspector(WCoreWindow *foo, void *data, XEvent *event)
{
InspectorPanel *panel, *tmp;
/* Parameter not used, but tell the compiler that it is ok */
(void) foo;
(void) event;
panel = panelList;
while (panel->frame != data)
panel = panel->nextPtr;