Module Name:    src
Committed By:   martin
Date:           Sun Sep 15 12:06:50 UTC 2013

Modified Files:
        src/sys/dev/raidframe: rf_general.h

Log Message:
When we do not compile in the RF_ASSERT-ion code, still "use" the expression,
so the compiler does not warn about unused things.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/raidframe/rf_general.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/raidframe/rf_general.h
diff -u src/sys/dev/raidframe/rf_general.h:1.19 src/sys/dev/raidframe/rf_general.h:1.20
--- src/sys/dev/raidframe/rf_general.h:1.19	Mon May 23 21:49:35 2011
+++ src/sys/dev/raidframe/rf_general.h	Sun Sep 15 12:06:50 2013
@@ -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 */

Reply via email to