1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-08 14:54:13 +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

@@ -355,6 +355,9 @@ static void selectedFamily(WMWidget * w, void *data)
FontStyle *oldStyle = NULL;
char buffer[1024];
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
item = WMGetListSelectedItem(panel->styleL);
if (item)
oldStyle = (FontStyle *) item->clientData;
@@ -436,6 +439,9 @@ static void selected(WMWidget * w, void *data)
FcChar8 *ofont;
char *nfont;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
ofont = (FcChar8 *) WMGetMenuItemRepresentedObject(item);
nfont = getSelectedFont(panel, ofont);
if (ofont)
@@ -453,6 +459,9 @@ static void selectedOption(WMWidget * w, void *data)
WMMenuItem *item = WMGetPopUpButtonMenuItem(panel->optionP, index);
char *font;
/* Parameter not used, but tell the compiler that it is ok */
(void) w;
font = (char *)WMGetMenuItemRepresentedObject(item);
if (font) {
FcPattern *pat;