aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/cdefs.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-29 18:44:21 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-29 18:44:21 +0000
commitf8270a622193bcd9e34483c0719a614541e21534 (patch)
tree171637aee3b7fc7ced8dee5280e4e6e63a69b24f /sys/sys/cdefs.h
parentc67d5d66bf06d4231bfa625123da52f3e613f6d8 (diff)
downloadsrc-f8270a622193bcd9e34483c0719a614541e21534.tar.gz
src-f8270a622193bcd9e34483c0719a614541e21534.zip
Ensure that lint does not pick up C11 keywords (e.g. _Noreturn), even
if C11 mode is used. It does not support any C11 constructs. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=277883
Diffstat (limited to 'sys/sys/cdefs.h')
-rw-r--r--sys/sys/cdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index a0cc52f57d45..b17e415eb5e2 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -252,7 +252,7 @@
* Keywords added in C11.
*/
-#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L
+#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 201112L || defined(lint)
#if !__has_extension(c_alignas)
#if (defined(__cplusplus) && __cplusplus >= 201103L) || \