mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue