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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194577
@ -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…
Reference in New Issue
Block a user