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 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
@@ -76,6 +76,9 @@ static void notifyClient(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WAppMenuData *data = entry->clientdata;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
sendMessage(data->window, wmSelectItem, data->tag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user