mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-28 09:22:27 +01:00
wmaker: Marked args as unused for compiler in WINGs callback code
The WINGs toolkit dispatch events on widgets using callbacks, 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
6948a9f2fe
commit
f0b8be0aed
@@ -122,6 +122,9 @@ static void chooseIconCallback(WMWidget * self, void *clientData)
|
||||
AppSettingsPanel *panel = (AppSettingsPanel *) clientData;
|
||||
int result;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) self;
|
||||
|
||||
panel->choosingIcon = 1;
|
||||
|
||||
WMSetButtonEnabled(panel->browseBtn, False);
|
||||
|
||||
Reference in New Issue
Block a user