Module Name: src Committed By: snj Date: Sat Jan 13 21:33:14 UTC 2018
Modified Files: src/sys/sys [netbsd-8]: cdefs.h Log Message: 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() To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.132.6.1 src/sys/sys/cdefs.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/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.132 src/sys/sys/cdefs.h:1.132.6.1 --- src/sys/sys/cdefs.h:1.132 Wed Feb 8 17:59:35 2017 +++ src/sys/sys/cdefs.h Sat Jan 13 21:33:14 2018 @@ -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)