]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use do { } while(0) instead of empty DBG if not debugging.
authorMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 21:47:25 +0000 (21:47 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 12 Mar 2000 21:47:25 +0000 (21:47 +0000)
lib/birdlib.h

index 22695c19b19badabc0aa92901c178b165178f772..6f053302ee397061551f37747eec7611ff0dff10 100644 (file)
@@ -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