mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 06:14:27 +00:00
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
f7490cfe01
commit
23057f089b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194576
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue