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/53b5ca0b9492
branches: trunk
changeset: 778181:53b5ca0b9492
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 18 16:20:49 2012 +0000
description:
add constcond
diffstat:
sys/sys/cdefs.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2ec5eb248603 -r 53b5ca0b9492 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h Sun Mar 18 15:35:27 2012 +0000
+++ b/sys/sys/cdefs.h Sun Mar 18 16:20:49 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.95 2012/03/17 16:48:35 christos Exp $ */
+/* $NetBSD: cdefs.h,v 1.96 2012/03/18 16:20:49 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -149,7 +149,7 @@
#define __CTASSERT(x) __CTASSERT0(x, __ctassert, __LINE__)
#endif
#define __CTASSERT0(x, y, z) __CTASSERT1(x, y, z)
-#define __CTASSERT1(x, y, z) typedef char y ## z[(x) ? 1 : -1];
+#define __CTASSERT1(x, y, z) typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1];
/*
* The following macro is used to remove const cast-away warnings
Home |
Main Index |
Thread Index |
Old Index