From: Christophe CURIS <christophe.cu...@free.fr>

Some arguments were not needed, but in order to keep a consistent API
it may still be a good idea to keep them. In these case, we have to tell
the compiler that it is ok to avoid spurious warnings.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 src/dock.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/dock.c b/src/dock.c
index 9da119c..062c038 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -2002,6 +2002,10 @@ finish:
 
 void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       /* We keep it to have a consistent object-oriented API */
+       (void) dock;
+
        if (btn && btn->command && !btn->running && !btn->launching) {
                btn->drop_launch = 0;
                btn->paste_launch = 0;
@@ -3182,6 +3186,10 @@ void wDockRaiseLower(WDock *dock)
 
 void wDockFinishLaunch(WDock *dock, WAppIcon *icon)
 {
+       /* Parameter not used, but tell the compiler that it is ok */
+       /* We keep it to have a consistent object-oriented API */
+       (void) dock;
+
        icon->launching = 0;
        icon->relaunching = 0;
        dockIconPaint(icon);
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to