summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2013-09-15 12:06:50 +0000
committermartin <martin@NetBSD.org>2013-09-15 12:06:50 +0000
commit7ae45e8e11b67ed6b99ecdce819b90ab11efcb4a (patch)
treec040266567072d5e6d938fbd769c3d29f79272cf /sys/dev/raidframe
parent2376acddb8ed1ce30e3f3c520112a01ea01f828a (diff)
When we do not compile in the RF_ASSERT-ion code, still "use" the expression,
so the compiler does not warn about unused things.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_general.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_general.h b/sys/dev/raidframe/rf_general.h
index 0d4658601ee..bc788b33153 100644
--- a/sys/dev/raidframe/rf_general.h
+++ b/sys/dev/raidframe/rf_general.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_general.h,v 1.19 2011/05/23 21:49:35 joerg Exp $ */
+/* $NetBSD: rf_general.h,v 1.20 2013/09/15 12:06:50 martin Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -65,7 +65,7 @@ extern char rf_panicbuf[];
} \
}
#else /* RAID_DIAGNOSTIC */
-#define RF_ASSERT(x) {/*noop*/}
+#define RF_ASSERT(x) { /*noop*/ (void)(x); }
#endif /* RAID_DIAGNOSTIC */
/* random stuff */