git-svn: trunk@3646
Török Edvin authored on 2008/02/17 00:05:27... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Feb 16 16:52:00 EET 2008 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/others.h: cannot use if in cli_dbgmsg() macro |
|
4 |
+ |
|
1 | 5 |
Sat Feb 16 13:45:01 EET 2008 (edwin) |
2 | 6 |
------------------------------------ |
3 | 7 |
* configure, configure.in: AC_TRY_COMPILE already wraps its args with int |
... | ... |
@@ -217,7 +217,7 @@ void cli_errmsg(const char *str, ...); |
217 | 217 |
#define UNLIKELY(cond) (cond) |
218 | 218 |
#endif |
219 | 219 |
|
220 |
-#define cli_dbgmsg if(UNLIKELY(cli_debug_flag)) cli_dbgmsg_internal |
|
220 |
+#define cli_dbgmsg (!UNLIKELY(cli_debug_flag)) ? (void)0 : cli_dbgmsg_internal |
|
221 | 221 |
|
222 | 222 |
#ifdef __GNUC__ |
223 | 223 |
void cli_dbgmsg_internal(const char *str, ...) __attribute__((format(printf, 1, 2))); |