svn commit: r194577 - head/sys/net
Roman Divacky
rdivacky at FreeBSD.org
Sun Jun 21 08:49:07 UTC 2009
Author: rdivacky
Date: Sun Jun 21 08:49:06 2009
New Revision: 194577
URL: http://svn.freebsd.org/changeset/base/194577
Log:
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@
Modified:
head/sys/net/bridgestp.c
Modified: head/sys/net/bridgestp.c
==============================================================================
--- head/sys/net/bridgestp.c Sun Jun 21 08:36:30 2009 (r194576)
+++ head/sys/net/bridgestp.c Sun Jun 21 08:49:06 2009 (r194577)
@@ -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 { \
More information about the svn-src-head
mailing list