From: Hallvard Furuseth Date: Sun, 16 Apr 2006 16:03:49 +0000 (+0000) Subject: #define LogN/Debug() as ((void)0) instead of empty macros with --disable-debug X-Git-Tag: OPENLDAP_REL_ENG_2_4_0ALPHA~3^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd11c2c419392c893f98cb365628355c4d42494a;p=openldap #define LogN/Debug() as ((void)0) instead of empty macros with --disable-debug --- diff --git a/include/ldap_log.h b/include/ldap_log.h index f8b708005f..33eac0f87d 100644 --- a/include/ldap_log.h +++ b/include/ldap_log.h @@ -232,13 +232,13 @@ extern void eb_syslog(int pri, const char *fmt, ...); #else /* ! LDAP_DEBUG */ /* TODO: in case LDAP_DEBUG is undefined, make sure logs with appropriate * severity gets thru anyway */ -#define Log0( level, severity, fmt ) -#define Log1( level, severity, fmt, arg1 ) -#define Log2( level, severity, fmt, arg1, arg2 ) -#define Log3( level, severity, fmt, arg1, arg2, arg3 ) -#define Log4( level, severity, fmt, arg1, arg2, arg3, arg4 ) -#define Log5( level, severity, fmt, arg1, arg2, arg3, arg4, arg5 ) -#define Debug( level, fmt, arg1, arg2, arg3 ) +#define Log0( level, severity, fmt ) ((void)0) +#define Log1( level, severity, fmt, arg1 ) ((void)0) +#define Log2( level, severity, fmt, arg1, arg2 ) ((void)0) +#define Log3( level, severity, fmt, arg1, arg2, arg3 ) ((void)0) +#define Log4( level, severity, fmt, arg1, arg2, arg3, arg4 ) ((void)0) +#define Log5( level, severity, fmt, arg1, arg2, arg3, arg4, arg5 ) ((void)0) +#define Debug( level, fmt, arg1, arg2, arg3 ) ((void)0) #define LogTest(level) ( 0 ) #endif /* ! LDAP_DEBUG */