From: Martin Mares Date: Sun, 12 Mar 2000 21:47:25 +0000 (+0000) Subject: Use do { } while(0) instead of empty DBG if not debugging. X-Git-Tag: v1.2.0~1280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e68dd11c43ebec527da69da7b093ae90ef6d6ea9;p=thirdparty%2Fbird.git Use do { } while(0) instead of empty DBG if not debugging. --- diff --git a/lib/birdlib.h b/lib/birdlib.h index 22695c19b..6f053302e 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -51,7 +51,7 @@ void debug(char *msg, ...); /* Printf to debug output */ #if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG) #define DBG(x, y...) debug(x, ##y) #else -#define DBG(x, y...) +#define DBG(x, y...) do { } while(0) #endif #ifdef DEBUGGING