From: Christophe CURIS <[email protected]>

The timers proposed by WINGs toolkit are handled with a callback function,
which means having a fixed argument list for that application function.

It is then correct to not use the argument, so this patch adds the
appropriate stuff to avoid a false report from compiler.

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/defaults.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/defaults.c b/src/defaults.c
index 3735448..e0f608a 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -966,6 +966,9 @@ void wDefaultsCheckDomains(void* arg)
        WMPropList *dict;
        int i;
 
+       /* Parameter not used, but tell the compiler that it is ok */
+       (void) arg;
+
        if (stat(w_global.domain.wmaker->path, &stbuf) >= 0 && 
w_global.domain.wmaker->timestamp < stbuf.st_mtime) {
                w_global.domain.wmaker->timestamp = stbuf.st_mtime;
 
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to