svn commit: r277883 - head/sys/sys
Dimitry Andric
dim at FreeBSD.org
Thu Jan 29 18:44:22 UTC 2015
Author: dim
Date: Thu Jan 29 18:44:21 2015
New Revision: 277883
URL: https://svnweb.freebsd.org/changeset/base/277883
Log:
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
Modified:
head/sys/sys/cdefs.h
Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h Thu Jan 29 18:08:50 2015 (r277882)
+++ head/sys/sys/cdefs.h Thu Jan 29 18:44:21 2015 (r277883)
@@ -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) || \
More information about the svn-src-head
mailing list