mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 12:24:17 +01:00
WPrefs: Marked args as unused for compiler in event 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
dd82c46335
commit
bc5985e824
@@ -94,6 +94,9 @@ static void sliderCallback(WMWidget * w, void *data)
|
||||
int swidth = WMGetSliderMaxValue(panel->hsli);
|
||||
int sheight = WMGetSliderMaxValue(panel->vsli);
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
x = WMGetSliderValue(panel->hsli);
|
||||
y = WMGetSliderValue(panel->vsli);
|
||||
|
||||
@@ -111,6 +114,9 @@ static void resistanceCallback(WMWidget * w, void *data)
|
||||
char buffer[64];
|
||||
int i;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
i = WMGetSliderValue(panel->resS);
|
||||
|
||||
if (i == 0)
|
||||
@@ -127,6 +133,9 @@ static void resizeCallback(WMWidget * w, void *data)
|
||||
char buffer[64];
|
||||
int i;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
i = WMGetSliderValue(panel->resizeS);
|
||||
|
||||
if (i == 0)
|
||||
|
||||
Reference in New Issue
Block a user