Source-Changes-HG archive

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

[src/trunk]: src/sys/sys add constcond



details:   https://anonhg.NetBSD.org/src/rev/ccf71a5670d7
branches:  trunk
changeset: 805973:ccf71a5670d7
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 25 20:45:18 2015 +0000

description:
add constcond

diffstat:

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

diffs (18 lines):

diff -r f329c5899833 -r ccf71a5670d7 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Sun Jan 25 20:09:42 2015 +0000
+++ b/sys/sys/cdefs.h   Sun Jan 25 20:45:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.123 2015/01/24 18:07:37 christos Exp $     */
+/*     $NetBSD: cdefs.h,v 1.124 2015/01/25 20:45:18 christos Exp $     */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -299,7 +299,7 @@
 #if __GNUC_PREREQ__(4, 6) || defined(__clang__)
 #define        __unreachable() __builtin_unreachable()
 #else
-#define        __unreachable() do {} while (0)
+#define        __unreachable() do {} while (/*CONSTCOND*/0)
 #endif
 
 #if defined(__cplusplus)



Home | Main Index | Thread Index | Old Index