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:
Roman Divacky 2009-06-21 08:49:06 +00:00
parent 23057f089b
commit 2b7d10c225
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194577

View File

@ -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 { \