Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Feb 2015 07:30:01 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r278058 - in stable: 10/sys/sys 9/sys/sys
Message-ID:  <201502020730.t127U1h7099465@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Feb  2 07:30:00 2015
New Revision: 278058
URL: https://svnweb.freebsd.org/changeset/base/278058

Log:
  MFC r277883:
  
  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.

Modified:
  stable/10/sys/sys/cdefs.h
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/sys/cdefs.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/10/sys/sys/cdefs.h
==============================================================================
--- stable/10/sys/sys/cdefs.h	Mon Feb  2 06:34:38 2015	(r278057)
+++ stable/10/sys/sys/cdefs.h	Mon Feb  2 07:30:00 2015	(r278058)
@@ -250,7 +250,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) || \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502020730.t127U1h7099465>