1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 14:42:29 +01:00

WPrefs: 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:
Christophe CURIS
2013-11-01 16:06:46 +01:00
committed by Carlos R. Mafra
parent cd78f11abc
commit 66f6817966
6 changed files with 18 additions and 0 deletions

View File

@@ -334,6 +334,9 @@ static void realizeObserver(void *self, WMNotification * not)
WEditMenu *menu = (WEditMenu *) self;
GNUstepWMAttributes attribs;
/* Parameter not used, but tell the compiler that it is ok */
(void) not;
memset(&attribs, 0, sizeof(GNUstepWMAttributes));
attribs.flags = GSWindowStyleAttr | GSWindowLevelAttr;
attribs.window_style = WMBorderlessWindowMask;