mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 3 additions and 3 deletions
|
|
@ -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