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:
rdivacky 2009-06-21 08:36:30 +00:00
parent f56dfc12fb
commit 51f7852228

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;