1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-02 06:05:45 +01:00

WPrefs: Marked args as unused for compiler in callback code

The function is a callback, which means having a fixed argument list.

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>
Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
Christophe CURIS
2013-11-03 14:38:03 +01:00
committed by Carlos R. Mafra
parent 5e9ebfea76
commit f8d9e4cd53

View File

@@ -1274,6 +1274,9 @@ static void menuItemEdited(struct WEditMenuDelegate *delegate, WEditMenu * menu,
_Panel *panel = (_Panel *) delegate->data;
WEditMenu *submenu;
/* Parameter not used, but tell the compiler it is ok */
(void) menu;
updateFrameTitle(panel, WGetEditMenuItemTitle(item), panel->currentType);
submenu = WGetEditMenuSubmenu(item);