From 2b7d10c225f7a5c9d8ea6864c5df462cf120bb6b Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Sun, 21 Jun 2009 08:49:06 +0000 Subject: [PATCH] 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@ --- sys/net/bridgestp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 5007281f0ebb..264844c4b14b 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 { \