From e68dd11c43ebec527da69da7b093ae90ef6d6ea9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 12 Mar 2000 21:47:25 +0000 Subject: Use do { } while(0) instead of empty DBG if not debugging. --- lib/birdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/birdlib.h b/lib/birdlib.h index 22695c1..6f05330 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 -- cgit v1.2.3