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:
parent
f56dfc12fb
commit
51f7852228
@ -296,11 +296,11 @@ MALLOC_DECLARE(M_NTFSNTHASH);
|
|||||||
#if NTFS_DEBUG > 1
|
#if NTFS_DEBUG > 1
|
||||||
#define ddprintf(a) printf a
|
#define ddprintf(a) printf a
|
||||||
#else
|
#else
|
||||||
#define ddprintf(a)
|
#define ddprintf(a) (void)0
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define dprintf(a)
|
#define dprintf(a) (void)0
|
||||||
#define ddprintf(a)
|
#define ddprintf(a) (void)0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern struct vop_vector ntfs_vnodeops;
|
extern struct vop_vector ntfs_vnodeops;
|
||||||
|
Loading…
Reference in New Issue
Block a user