mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 05:25:53 +01:00
WPrefs: 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
63037bf426
commit
066d0cdef7
@@ -1213,6 +1213,9 @@ static void paintListItem(WMList * lPtr, int index, Drawable d, char *text, int
|
||||
WMColor *black = WMBlackColor(scr);
|
||||
TextureListItem *titem;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) text;
|
||||
|
||||
item = WMGetListItem(lPtr, index);
|
||||
titem = (TextureListItem *) item->clientData;
|
||||
if (!titem) {
|
||||
@@ -1497,6 +1500,9 @@ static void changedTabItem(struct WMTabViewDelegate *self, WMTabView * tabView,
|
||||
_Panel *panel = self->data;
|
||||
int i;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) tabView;
|
||||
|
||||
i = WMGetTabViewItemIdentifier(item);
|
||||
switch (i) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user