mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 01:42:32 +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
@@ -75,6 +75,9 @@ static void execWindowOptionCommand(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WWindow *wwin = (WWindow *) entry->clientdata;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
switch (entry->order) {
|
||||
case WO_KEEP_ON_TOP:
|
||||
if (wwin->frame->core->stacking->window_level != WMFloatingLevel)
|
||||
@@ -180,6 +183,9 @@ static void switchWSCommand(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WWindow *wwin = (WWindow *) entry->clientdata;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
wSelectWindow(wwin, False);
|
||||
wWindowChangeWorkspace(wwin, entry->order);
|
||||
}
|
||||
@@ -190,6 +196,9 @@ static void makeShortcutCommand(WMenu *menu, WMenuEntry *entry)
|
||||
WScreen *scr = wwin->screen_ptr;
|
||||
int index = entry->order - WO_ENTRIES;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
if (w_global.shortcut.windows[index]) {
|
||||
WMFreeArray(w_global.shortcut.windows[index]);
|
||||
w_global.shortcut.windows[index] = NULL;
|
||||
|
||||
Reference in New Issue
Block a user