mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 01:42:32 +01:00
WPrefs: Marked args as unused for compiler in Notification callback code
The mechanism of Notifications in the WINGs toolkit is relying on callbacks to dispatch notifications, which means having a fixed argument list for the handling 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
cd78f11abc
commit
66f6817966
@@ -393,6 +393,9 @@ static void typedKeys(void *observerData, WMNotification * notification)
|
||||
_Panel *panel = (_Panel *) observerData;
|
||||
int row = WMGetListSelectedItemRow(panel->actLs);
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) notification;
|
||||
|
||||
if (row < 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user