mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 05:44:11 +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
@@ -460,6 +460,9 @@ static void gradAddCallback(WMWidget * w, void *data)
|
||||
int row;
|
||||
RColor *rgb;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
row = WMGetListSelectedItemRow(panel->gcolL) + 1;
|
||||
item = WMInsertListItem(panel->gcolL, row, "00,00,00");
|
||||
rgb = wmalloc(sizeof(RColor));
|
||||
@@ -502,6 +505,9 @@ static void gradDeleteCallback(WMWidget * w, void *data)
|
||||
WMListItem *item;
|
||||
int row;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
row = WMGetListSelectedItemRow(panel->gcolL);
|
||||
if (row < 0)
|
||||
return;
|
||||
@@ -534,6 +540,9 @@ static void opaqChangeCallback(WMWidget * w, void *data)
|
||||
{
|
||||
TexturePanel *panel = (TexturePanel *) data;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
updateTGradImage(panel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user