From 6909ee09769def14c3baa44a1ef970ceb5cc301e Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 1 Nov 2013 16:06:51 +0100 Subject: [PATCH] wmaker: Marked arg as unused for compiler in Timer handler 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 --- src/defaults.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/defaults.c b/src/defaults.c index 37354488..e0f608ac 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;