mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +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)
|
#if defined(LOCAL_DEBUG) || defined(GLOBAL_DEBUG)
|
||||||
#define DBG(x, y...) debug(x, ##y)
|
#define DBG(x, y...) debug(x, ##y)
|
||||||
#else
|
#else
|
||||||
#define DBG(x, y...)
|
#define DBG(x, y...) do { } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUGGING
|
#ifdef DEBUGGING
|
||||||
|
Loading…
Reference in New Issue
Block a user