summaryrefslogtreecommitdiffstats
path: root/sys/fs/ntfs/ntfs.h
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2009-06-21 08:36:30 +0000
committerrdivacky <rdivacky@FreeBSD.org>2009-06-21 08:36:30 +0000
commit51f785222871fab4ab1daab2ff471addb36f6e36 (patch)
treed4ed4d46030571e77fe20748be5dda764545f80a /sys/fs/ntfs/ntfs.h
parentf56dfc12fbe2350fb7dc3a4f17fb687fa815ddce (diff)
downloadFreeBSD-src-51f785222871fab4ab1daab2ff471addb36f6e36.zip
FreeBSD-src-51f785222871fab4ab1daab2ff471addb36f6e36.tar.gz
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@
Diffstat (limited to 'sys/fs/ntfs/ntfs.h')
-rw-r--r--sys/fs/ntfs/ntfs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/ntfs/ntfs.h b/sys/fs/ntfs/ntfs.h
index 0d5242b..3e88086 100644
--- a/sys/fs/ntfs/ntfs.h
+++ b/sys/fs/ntfs/ntfs.h
@@ -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;
OpenPOWER on IntegriCloud