summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2009-06-21 08:49:06 +0000
committerrdivacky <rdivacky@FreeBSD.org>2009-06-21 08:49:06 +0000
commitcc5ff80770d96ca4ca6b86009674a097e1f1fc55 (patch)
tree5aab90525a39d9405581dfba1d650da6a75f391c /sys/net/bridgestp.c
parent51f785222871fab4ab1daab2ff471addb36f6e36 (diff)
downloadFreeBSD-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.c2
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 { \
OpenPOWER on IntegriCloud