mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
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 <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
066d0cdef7
commit
6909ee0976
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user