mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-06 14:45:52 -04:00
cannot use if in cli_dbgmsg() macro
git-svn: trunk@3646
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Sat Feb 16 16:52:00 EET 2008 (edwin)
|
||||
------------------------------------
|
||||
* libclamav/others.h: cannot use if in cli_dbgmsg() macro
|
||||
|
||||
Sat Feb 16 13:45:01 EET 2008 (edwin)
|
||||
------------------------------------
|
||||
* configure, configure.in: AC_TRY_COMPILE already wraps its args with int
|
||||
|
||||
@@ -217,7 +217,7 @@ void cli_errmsg(const char *str, ...);
|
||||
#define UNLIKELY(cond) (cond)
|
||||
#endif
|
||||
|
||||
#define cli_dbgmsg if(UNLIKELY(cli_debug_flag)) cli_dbgmsg_internal
|
||||
#define cli_dbgmsg (!UNLIKELY(cli_debug_flag)) ? (void)0 : cli_dbgmsg_internal
|
||||
|
||||
#ifdef __GNUC__
|
||||
void cli_dbgmsg_internal(const char *str, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
Reference in New Issue
Block a user