diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2017-11-23 11:40:16 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2017-11-23 11:40:16 +0000 |
commit | 383f241dce091911b9466f49c19c8746b233ba3e (patch) | |
tree | 02563556bd23b0e157a8ee5501cecf0296474fad /sys/sys/cdefs.h | |
parent | ee50062cfb85553ad933db2b2e5a85fe85705d57 (diff) | |
download | src-383f241dce091911b9466f49c19c8746b233ba3e.tar.gz src-383f241dce091911b9466f49c19c8746b233ba3e.zip |
Remove lint support from system headers and MD x86 headers.
Reviewed by: dim, jhb
Discussed with: imp
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D13156
Notes
Notes:
svn path=/head/; revision=326123
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r-- | sys/sys/cdefs.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 1686e1c73d21..bef96e23beb7 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -207,17 +207,6 @@ * for a given compiler, let the compile fail if it is told to use * a feature that we cannot live without. */ -#ifdef lint -#define __dead2 -#define __pure2 -#define __unused -#define __packed -#define __aligned(x) -#define __alloc_align(x) -#define __alloc_size(x) -#define __section(x) -#define __weak_symbol -#else #define __weak_symbol __attribute__((__weak__)) #if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER) #define __dead2 @@ -249,7 +238,6 @@ #else #define __alloc_align(x) #endif -#endif /* lint */ #if !__GNUC_PREREQ__(2, 95) #define __alignof(x) __offsetof(struct { char __a; x __b; }, __b) @@ -259,7 +247,7 @@ * Keywords added in C11. */ -#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L || defined(lint) +#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L #if !__has_extension(c_alignas) #if (defined(__cplusplus) && __cplusplus >= 201103L) || \ @@ -425,7 +413,7 @@ * software that is unaware of C99 keywords. */ #if !(__GNUC__ == 2 && __GNUC_MINOR__ == 95) -#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 || defined(lint) +#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901 #define __restrict #else #define __restrict restrict @@ -819,7 +807,7 @@ */ #if __has_attribute(__argument_with_type_tag__) && \ - __has_attribute(__type_tag_for_datatype__) && !defined(lint) + __has_attribute(__type_tag_for_datatype__) #define __arg_type_tag(arg_kind, arg_idx, type_tag_idx) \ __attribute__((__argument_with_type_tag__(arg_kind, arg_idx, type_tag_idx))) #define __datatype_type_tag(kind, type) \ |