From f8d9e4cd53f6cabcf4997a3a74692f33794395de Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 3 Nov 2013 14:38:03 +0100 Subject: [PATCH] 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 Signed-off-by: Carlos R. Mafra --- WPrefs.app/Menu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WPrefs.app/Menu.c b/WPrefs.app/Menu.c index 2b7f4fb3..59d407e3 100644 --- a/WPrefs.app/Menu.c +++ b/WPrefs.app/Menu.c @@ -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);