Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Expand null macros to `do {} while (0)', not to noth...



details:   https://anonhg.NetBSD.org/src/rev/e364c69d73f0
branches:  trunk
changeset: 330671:e364c69d73f0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Jul 17 14:55:32 2014 +0000

description:
Expand null macros to `do {} while (0)', not to nothing.

diffstat:

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

diffs (18 lines):

diff -r 5a9837557066 -r e364c69d73f0 sys/sys/systm.h
--- a/sys/sys/systm.h   Thu Jul 17 14:30:33 2014 +0000
+++ b/sys/sys/systm.h   Thu Jul 17 14:55:32 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.263 2014/04/03 15:22:57 christos Exp $     */
+/*     $NetBSD: systm.h,v 1.264 2014/07/17 14:55:32 riastradh Exp $    */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -527,7 +527,7 @@
 #if defined(DEBUG)
 #define        ASSERT_SLEEPABLE()      assert_sleepable()
 #else /* defined(DEBUG) */
-#define        ASSERT_SLEEPABLE()      /* nothing */
+#define        ASSERT_SLEEPABLE()      do {} while (0)
 #endif /* defined(DEBUG) */
 
 vaddr_t calc_cache_size(vsize_t , int, int);



Home | Main Index | Thread Index | Old Index