mirror of
https://github.com/gryf/wmaker.git
synced 2026-04-13 11:33:32 +02:00
WINGs: 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
237c386fdc
commit
ea74fe8871
@@ -2678,6 +2678,9 @@ static void rulerMoveCallBack(WMWidget * w, void *self)
|
||||
{
|
||||
Text *tPtr = (Text *) self;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
if (!tPtr)
|
||||
return;
|
||||
if (W_CLASS(tPtr) != WC_Text)
|
||||
@@ -2690,6 +2693,9 @@ static void rulerReleaseCallBack(WMWidget * w, void *self)
|
||||
{
|
||||
Text *tPtr = (Text *) self;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) w;
|
||||
|
||||
if (!tPtr)
|
||||
return;
|
||||
if (W_CLASS(tPtr) != WC_Text)
|
||||
|
||||
Reference in New Issue
Block a user