From: Christophe CURIS <christophe.cu...@free.fr> 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.cu...@free.fr> --- WPrefs.app/Appearance.c | 3 +++ WPrefs.app/Focus.c | 3 +++ WPrefs.app/KeyboardShortcuts.c | 3 +++ WPrefs.app/MouseSettings.c | 3 +++ WPrefs.app/TexturePanel.c | 3 +++ WPrefs.app/editmenu.c | 3 +++ 6 files changed, 18 insertions(+) diff --git a/WPrefs.app/Appearance.c b/WPrefs.app/Appearance.c index 65865e9..8a3fe6b 100644 --- a/WPrefs.app/Appearance.c +++ b/WPrefs.app/Appearance.c @@ -1465,6 +1465,9 @@ static void colorWellObserver(void *self, WMNotification * n) _Panel *panel = (_Panel *) self; int p; + /* Parameter not used, but tell the compiler that it is ok */ + (void) n; + p = WMGetPopUpButtonSelectedItem(panel->colP); WMReleaseColor(panel->colors[p]); diff --git a/WPrefs.app/Focus.c b/WPrefs.app/Focus.c index 9567dde..0a0916d 100644 --- a/WPrefs.app/Focus.c +++ b/WPrefs.app/Focus.c @@ -167,6 +167,9 @@ static void raiseTextChanged(void *observerData, WMNotification * notification) _Panel *panel = (_Panel *) observerData; int i; + /* Parameter not used, but tell the compiler that it is ok */ + (void) notification; + if (panel->raiseDelaySelected) { for (i = 0; i < 5; i++) { WMSetButtonSelected(panel->raisB[i], False); diff --git a/WPrefs.app/KeyboardShortcuts.c b/WPrefs.app/KeyboardShortcuts.c index 4c418c6..1d8e0ed 100644 --- a/WPrefs.app/KeyboardShortcuts.c +++ b/WPrefs.app/KeyboardShortcuts.c @@ -393,6 +393,9 @@ static void typedKeys(void *observerData, WMNotification * notification) _Panel *panel = (_Panel *) observerData; int row = WMGetListSelectedItemRow(panel->actLs); + /* Parameter not used, but tell the compiler that it is ok */ + (void) notification; + if (row < 0) return; diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c index 4ad0433..4ec2323 100644 --- a/WPrefs.app/MouseSettings.c +++ b/WPrefs.app/MouseSettings.c @@ -151,6 +151,9 @@ static void returnPressed(void *observerData, WMNotification * notification) { _Panel *panel = (_Panel *) observerData; + /* Parameter not used, but tell the compiler that it is ok */ + (void) notification; + speedChange(NULL, panel); } diff --git a/WPrefs.app/TexturePanel.c b/WPrefs.app/TexturePanel.c index ad96bc0..65d2a0e 100644 --- a/WPrefs.app/TexturePanel.c +++ b/WPrefs.app/TexturePanel.c @@ -524,6 +524,9 @@ static void gradDeleteCallback(WMWidget * w, void *data) static void colorWellObserver(void *self, WMNotification * n) { + /* Parameter not used, but tell the compiler that it is ok */ + (void) n; + updateSGradButtons(self); } diff --git a/WPrefs.app/editmenu.c b/WPrefs.app/editmenu.c index 46552b8..f5edeed 100644 --- a/WPrefs.app/editmenu.c +++ b/WPrefs.app/editmenu.c @@ -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; -- 1.8.4.rc3 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.