mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
wmaker: Marked args as unused for compiler in menu callback code
When an entry of a menu is selected, the appropriate action is triggered using a callback, 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
adb936e9f2
commit
9330ddf946
@@ -483,6 +483,9 @@ static void relaunchCallback(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WApplication *wapp = (WApplication *) entry->clientdata;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
relaunchApplication(wapp);
|
||||
}
|
||||
|
||||
@@ -502,6 +505,9 @@ static void unhideHereCallback(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WApplication *wapp = (WApplication *) entry->clientdata;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
wUnhideApplication(wapp, False, True);
|
||||
}
|
||||
|
||||
@@ -512,6 +518,9 @@ static void setIconCallback(WMenu *menu, WMenuEntry *entry)
|
||||
WScreen *scr;
|
||||
int result;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
assert(icon != NULL);
|
||||
|
||||
if (icon->editing)
|
||||
|
||||
Reference in New Issue
Block a user