From aedf0a5e8269b2855c6a61ed59c79660cb0d481e Mon Sep 17 00:00:00 2001 From: Karl-Philipp Richter Date: Tue, 12 Jan 2016 19:45:08 +0100 Subject: [PATCH] fixed cpp warning due to missing #ifdef directive in lib/util/debug.h --- lib/util/debug.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util/debug.h b/lib/util/debug.h index 95b0a30..08de8f6 100644 --- a/lib/util/debug.h +++ b/lib/util/debug.h @@ -178,11 +178,13 @@ extern int *DEBUGLEVEL_CLASS; ( CHECK_DEBUGLVLC( dbgc_class, level ) \ && dbghdrclass( level, dbgc_class, __location__, __FUNCTION__ ) ) +#ifndef DEBUG #define DEBUG( level, body ) \ (void)( ((level) <= MAX_DEBUG_LEVEL) && \ unlikely(DEBUGLEVEL_CLASS[ DBGC_CLASS ] >= (level)) \ && (dbghdrclass( level, DBGC_CLASS, __location__, __FUNCTION__ )) \ && (dbgtext body) ) +#endif #define DEBUGC( dbgc_class, level, body ) \ (void)( ((level) <= MAX_DEBUG_LEVEL) && \