1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-09 01:45:48 +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:
Christophe CURIS
2013-11-01 16:06:48 +01:00
committed by Carlos R. Mafra
parent dd82c46335
commit bc5985e824
8 changed files with 73 additions and 0 deletions

View File

@@ -971,6 +971,9 @@ static void editTexture(WMWidget * w, void *data)
WMListItem *item;
TextureListItem *titem;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
item = WMGetListItem(panel->texLs, WMGetListSelectedItemRow(panel->texLs));
titem = (TextureListItem *) item->clientData;
@@ -988,6 +991,9 @@ static void newTexture(WMWidget * w, void *data)
{
_Panel *panel = (_Panel *) data;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
SetTexturePanelPixmapPath(panel->texturePanel, GetObjectForKey("PixmapPath"));
SetTexturePanelTexture(panel->texturePanel, "New Texture", NULL);
@@ -1007,6 +1013,9 @@ static void deleteTexture(WMWidget * w, void *data)
int row;
int section;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
section = WMGetPopUpButtonSelectedItem(panel->secP);
row = WMGetListSelectedItemRow(panel->texLs);
item = WMGetListItem(panel->texLs, row);
@@ -1144,6 +1153,9 @@ static void textureClick(WMWidget * w, void *data)
WMListItem *item;
TextureListItem *titem;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
i = WMGetListSelectedItemRow(panel->texLs);
item = WMGetListItem(panel->texLs, i);
@@ -1164,6 +1176,9 @@ static void textureDoubleClick(WMWidget * w, void *data)
WMListItem *item;
TextureListItem *titem;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
/* unselect old texture */
section = WMGetPopUpButtonSelectedItem(panel->secP);