Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/sys Pull up following revision(s) (requested by chris...



details:   https://anonhg.NetBSD.org/src/rev/c22dd7585552
branches:  netbsd-8
changeset: 434550:c22dd7585552
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Jan 13 21:33:14 2018 +0000

description:
Pull up following revision(s) (requested by christos in ticket #473):
        sys/sys/cdefs.h: 1.133-1.135
Ignore __thread for lint for now
--
lint knows about all inline variant syntax...
--
add linted to __USE()

diffstat:

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

diffs (32 lines):

diff -r 7be7d0472bfd -r c22dd7585552 sys/sys/cdefs.h
--- a/sys/sys/cdefs.h   Sat Jan 13 05:50:47 2018 +0000
+++ b/sys/sys/cdefs.h   Sat Jan 13 21:33:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs.h,v 1.132 2017/02/08 17:59:35 christos Exp $     */
+/*     $NetBSD: cdefs.h,v 1.132.6.1 2018/01/13 21:33:14 snj Exp $      */
 
 /* * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -369,11 +369,12 @@
 #define        __c99inline     extern __attribute__((__gnu_inline__)) __inline
 #elif defined(__GNUC__)
 #define        __c99inline     extern __inline
-#elif defined(__STDC_VERSION__)
+#elif defined(__STDC_VERSION__) || defined(__lint__)
 #define        __c99inline     __inline
 #endif
 
 #if defined(__lint__)
+#define __thread       /* delete */
 #define        __packed        __packed
 #define        __aligned(x)    /* delete */
 #define        __section(x)    /* delete */
@@ -608,7 +609,7 @@
 #define __CASTV(__dt, __st)    __CAST(__dt, __CAST(void *, __st))
 #define __CASTCV(__dt, __st)   __CAST(__dt, __CAST(const void *, __st))
 
-#define __USE(a) ((void)(a))
+#define __USE(a) (/*LINTED*/(void)(a))
 
 #define __type_mask(t) (/*LINTED*/sizeof(t) < sizeof(intmax_t) ? \
     (~((1ULL << (sizeof(t) * NBBY)) - 1)) : 0ULL)



Home | Main Index | Thread Index | Old Index