mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +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:
committed by
Carlos R. Mafra
parent
3857def779
commit
f45d57ff16
10
src/dialog.c
10
src/dialog.c
@@ -1105,6 +1105,11 @@ static InfoPanel *thePanel = NULL;
|
|||||||
|
|
||||||
static void destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event)
|
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);
|
WMUnmapWidget(thePanel);
|
||||||
wUnmanageWindow(thePanel->wwin, False, False);
|
wUnmanageWindow(thePanel->wwin, False, False);
|
||||||
WMDestroyWidget(thePanel->win);
|
WMDestroyWidget(thePanel->win);
|
||||||
@@ -1365,6 +1370,11 @@ static LegalPanel *legalPanel = NULL;
|
|||||||
|
|
||||||
static void destroyLegalPanel(WCoreWindow * foo, void *data, XEvent * event)
|
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);
|
WMUnmapWidget(legalPanel->win);
|
||||||
|
|
||||||
WMDestroyWidget(legalPanel->win);
|
WMDestroyWidget(legalPanel->win);
|
||||||
|
|||||||
@@ -222,6 +222,10 @@ static void destroyInspector(WCoreWindow *foo, void *data, XEvent *event)
|
|||||||
{
|
{
|
||||||
InspectorPanel *panel, *tmp;
|
InspectorPanel *panel, *tmp;
|
||||||
|
|
||||||
|
/* Parameter not used, but tell the compiler that it is ok */
|
||||||
|
(void) foo;
|
||||||
|
(void) event;
|
||||||
|
|
||||||
panel = panelList;
|
panel = panelList;
|
||||||
while (panel->frame != data)
|
while (panel->frame != data)
|
||||||
panel = panel->nextPtr;
|
panel = panel->nextPtr;
|
||||||
|
|||||||
Reference in New Issue
Block a user