mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Use do { } while(0) instead of empty DBG if not debugging.
This commit is contained in:
parent
6b9fa32080
commit
e68dd11c43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user