1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-17 23:05:50 +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:
Christophe CURIS
2013-10-13 22:44:04 +02:00
committed by Carlos R. Mafra
parent adb936e9f2
commit 9330ddf946
7 changed files with 114 additions and 0 deletions

View File

@@ -640,11 +640,17 @@ static void switchWSCommand(WMenu * menu, WMenuEntry * entry)
static void lastWSCommand(WMenu *menu, WMenuEntry *entry)
{
/* Parameter not used, but tell the compiler that it is ok */
(void) entry;
wWorkspaceChange(menu->frame->screen_ptr, w_global.workspace.last_used);
}
static void deleteWSCommand(WMenu *menu, WMenuEntry *entry)
{
/* Parameter not used, but tell the compiler that it is ok */
(void) entry;
wWorkspaceDelete(menu->frame->screen_ptr, w_global.workspace.count - 1);
}
@@ -652,6 +658,9 @@ static void newWSCommand(WMenu *menu, WMenuEntry *foo)
{
int ws;
/* Parameter not used, but tell the compiler that it is ok */
(void) foo;
ws = wWorkspaceNew(menu->frame->screen_ptr);
/* autochange workspace */