svn commit: r254691 - stable/8/share/mk

Andriy Gapon avg at FreeBSD.org
Fri Aug 23 13:19:12 UTC 2013


Author: avg
Date: Fri Aug 23 13:19:12 2013
New Revision: 254691
URL: http://svnweb.freebsd.org/changeset/base/254691

Log:
  MFC r198335,198365: remove dependency between NO_WARNS and CSTD
  
  There is no reason to have it.
  
  Reviewed by:	dim
  MFC slackers:	rdivacky, ru

Modified:
  stable/8/share/mk/bsd.sys.mk
Directory Properties:
  stable/8/share/mk/   (props changed)

Modified: stable/8/share/mk/bsd.sys.mk
==============================================================================
--- stable/8/share/mk/bsd.sys.mk	Fri Aug 23 13:14:18 2013	(r254690)
+++ stable/8/share/mk/bsd.sys.mk	Fri Aug 23 13:19:12 2013	(r254691)
@@ -11,7 +11,7 @@
 # the default is gnu99 for now
 CSTD		?= gnu99
 
-.if !defined(NO_WARNS) && ${CC} != "icc"
+.if ${CC} != "icc"
 . if ${CSTD} == "k&r"
 CFLAGS		+= -traditional
 . elif ${CSTD} == "c89" || ${CSTD} == "c90"
@@ -23,6 +23,8 @@ CFLAGS		+= -std=iso9899:1999
 . else
 CFLAGS		+= -std=${CSTD}
 . endif
+.endif
+.if !defined(NO_WARNS) && ${CC} != "icc"
 # -pedantic is problematic because it also imposes namespace restrictions
 #CFLAGS		+= -pedantic
 . if defined(WARNS)


More information about the svn-src-stable-8 mailing list