diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-06-21 08:49:06 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-06-21 08:49:06 +0000 |
commit | cc5ff80770d96ca4ca6b86009674a097e1f1fc55 (patch) | |
tree | 5aab90525a39d9405581dfba1d650da6a75f391c /sys/net/bridgestp.c | |
parent | 51f785222871fab4ab1daab2ff471addb36f6e36 (diff) | |
download | FreeBSD-src-cc5ff80770d96ca4ca6b86009674a097e1f1fc55.zip FreeBSD-src-cc5ff80770d96ca4ca6b86009674a097e1f1fc55.tar.gz |
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@
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r-- | sys/net/bridgestp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 5007281..264844c 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -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 { \ |