From 51161b32676721aef736ae273ef6e50897210bed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 10 Dec 2013 19:24:38 +0100 Subject: [PATCH] Fix warnings with debugging switched off. --- src/Vfs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Vfs.h b/src/Vfs.h index c36a0aa..89e366e 100644 --- a/src/Vfs.h +++ b/src/Vfs.h @@ -19,7 +19,11 @@ #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__ -- 1.8.2.3