In non-debugging mode make this define (void)0 instead of nothing. This
helps to catch bugs like the below with clang. if (cond); <--- note the trailing ; something(); Approved by: ed (mentor) Discussed on: current@
This commit is contained in:
parent
23057f089b
commit
2b7d10c225
@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$");
|
||||
#ifdef BRIDGESTP_DEBUG
|
||||
#define DPRINTF(fmt, arg...) printf("bstp: " fmt, ##arg)
|
||||
#else
|
||||
#define DPRINTF(fmt, arg...)
|
||||
#define DPRINTF(fmt, arg...) (void)0
|
||||
#endif
|
||||
|
||||
#define PV2ADDR(pv, eaddr) do { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user