Date: Fri, 23 Aug 2013 13:19:12 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r254691 - stable/8/share/mk Message-ID: <201308231319.r7NDJCqg050406@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308231319.r7NDJCqg050406>