From: Christophe CURIS <[email protected]> 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 <[email protected]> --- src/dialog.c | 10 ++++++++++ src/winspector.c | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/dialog.c b/src/dialog.c index a00de06..a8eb2c6 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -1105,6 +1105,11 @@ static InfoPanel *thePanel = NULL; static void destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) foo; + (void) data; + (void) event; + WMUnmapWidget(thePanel); wUnmanageWindow(thePanel->wwin, False, False); WMDestroyWidget(thePanel->win); @@ -1365,6 +1370,11 @@ static LegalPanel *legalPanel = NULL; static void destroyLegalPanel(WCoreWindow * foo, void *data, XEvent * event) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) foo; + (void) data; + (void) event; + WMUnmapWidget(legalPanel->win); WMDestroyWidget(legalPanel->win); diff --git a/src/winspector.c b/src/winspector.c index d861b9c..78a35ba 100644 --- a/src/winspector.c +++ b/src/winspector.c @@ -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; -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
