From b48db8e12d07b8a1c49b85d2c02b91dc9b96d6ef Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 22 Oct 2009 11:45:35 +0000 Subject: [PATCH] Unbreak NO_WARNS, keeping CSTD effect on CFLAGS out of its control. Unbreak compiles with icc. --- share/mk/bsd.sys.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index f0a40c968ef..9a189a6a876 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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)