Fix warnings with debugging switched off.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 10 Dec 2013 18:24:38 +0000 (19:24 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 10 Feb 2014 14:08:22 +0000 (15:08 +0100)
src/Vfs.h

index c36a0aa..89e366e 100644 (file)
--- a/src/Vfs.h
+++ b/src/Vfs.h
     #define debug(MSG, ...) syslog(LOG_DEBUG, "%s::%s(): " MSG, getImplId().c_str(), __func__ , ##__VA_ARGS)
   #endif
 #else
-  #define debug
+  #ifdef __GNUC__
+    #define debug(MSG, ARGS...) {}
+  #else
+    #define debug(MSG, ...) {}
+  #endif
 #endif
 
 #ifdef __GNUC__