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) || \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to