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:36:30 +00:00
parent f7490cfe01
commit 23057f089b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194576

View file

@ -296,11 +296,11 @@ MALLOC_DECLARE(M_NTFSNTHASH);
#if NTFS_DEBUG > 1
#define ddprintf(a) printf a
#else
#define ddprintf(a)
#define ddprintf(a) (void)0
#endif
#else
#define dprintf(a)
#define ddprintf(a)
#define dprintf(a) (void)0
#define ddprintf(a) (void)0
#endif
extern struct vop_vector ntfs_vnodeops;