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

wmaker: Marked args as unused for compiler in XClickEvent callback code

The toolkit dispatches X events for MouseButton 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:06 +02:00
committed by Carlos R. Mafra
parent c34a55ed5a
commit 3857def779
2 changed files with 31 additions and 0 deletions

View File

@@ -2094,6 +2094,9 @@ static void menuTitleDoubleClick(WCoreWindow * sender, void *data, XEvent * even
WMenu *menu = data;
int lower;
/* Parameter not used, but tell the compiler that it is ok */
(void) sender;
if (event->xbutton.state & MOD_MASK) {
if (menu->flags.lowered) {
lower = 0;
@@ -2114,6 +2117,9 @@ static void menuTitleMouseDown(WCoreWindow * sender, void *data, XEvent * event)
int i, lower;
Bool started;
/* Parameter not used, but tell the compiler that it is ok */
(void) sender;
/* can't touch the menu copy */
if (menu->flags.brother)
return;
@@ -2221,6 +2227,10 @@ static void menuCloseClick(WCoreWindow * sender, void *data, XEvent * event)
WMenu *parent = menu->parent;
int i;
/* Parameter not used, but tell the compiler that it is ok */
(void) sender;
(void) event;
if (parent) {
for (i = 0; i < parent->cascade_no; i++) {
/* find the entry that points to the copy */