1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

WINGs: Marked args as unused for compiler in WINGs API code

There are a few function in WING's API that take parameter for consistency
reason and for possible future evolution, but actually do not need the
argument.

As they are case we know about, this patch adds the appropriate stuff to
tell the compiler we are ok with this to avoid a false report.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-10-19 22:17:57 +02:00
committed by Carlos R. Mafra
parent bd58625a3f
commit 9f1207342a
2 changed files with 7 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ WMMenuItem *WMGetSeparatorMenuItem(void)
Bool WMMenuItemIsSeparator(WMMenuItem * item) Bool WMMenuItemIsSeparator(WMMenuItem * item)
{ {
/* Parameter not used, but tell the compiler that it is ok */
(void) item;
return False; return False;
} }

View File

@@ -3473,6 +3473,10 @@ static void destroyWidget(WMWidget * widget)
void WMDestroyTextBlock(WMText * tPtr, void *vtb) void WMDestroyTextBlock(WMText * tPtr, void *vtb)
{ {
TextBlock *tb = (TextBlock *) vtb; TextBlock *tb = (TextBlock *) vtb;
/* Parameter not used, but tell the compiler that it is ok */
(void) tPtr;
if (!tb) if (!tb)
return; return;