Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe When we do not compile in the RF_ASSERT-io...



details:   https://anonhg.NetBSD.org/src/rev/2c624b5c0613
branches:  trunk
changeset: 790025:2c624b5c0613
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 12:06:50 2013 +0000

description:
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:

 sys/dev/raidframe/rf_general.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 28f046ce2b1b -r 2c624b5c0613 sys/dev/raidframe/rf_general.h
--- a/sys/dev/raidframe/rf_general.h    Sun Sep 15 10:41:20 2013 +0000
+++ b/sys/dev/raidframe/rf_general.h    Sun Sep 15 12:06:50 2013 +0000
@@ -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 @@
   } \
 }
 #else /* RAID_DIAGNOSTIC */
-#define RF_ASSERT(x) {/*noop*/}
+#define RF_ASSERT(x) { /*noop*/ (void)(x); }
 #endif /* RAID_DIAGNOSTIC */
 
 /* random stuff */



Home | Main Index | Thread Index | Old Index