mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-11 11:15:55 +01:00
WINGs: Marked args as unused for compiler in Notification callback code
The mechanism of Notifications in the WINGs toolkit is relying on callbacks to dispatch notifications, 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
58961dce72
commit
fed1bf4de3
@@ -351,6 +351,9 @@ static void handleViewResized(void *self, WMNotification * notification)
|
||||
{
|
||||
WMSplitView *sPtr = (WMSplitView *) self;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) notification;
|
||||
|
||||
#if 0
|
||||
printf("---- (handleViewResized - 1) ----\n");
|
||||
dumpSubviews(sPtr);
|
||||
|
||||
Reference in New Issue
Block a user