Unbreak NO_WARNS, keeping CSTD effect on CFLAGS out of its control.

Unbreak compiles with icc.
This commit is contained in:
Ruslan Ermilov 2009-10-22 11:45:35 +00:00
parent 5d98bcc2ff
commit b48db8e12d

View File

@ -11,7 +11,7 @@
# the default is gnu99 for now # the default is gnu99 for now
CSTD ?= gnu99 CSTD ?= gnu99
.if !defined(NO_WARNS) || ${CC} != "icc" .if ${CC} != "icc"
. if ${CSTD} == "k&r" . if ${CSTD} == "k&r"
CFLAGS += -traditional CFLAGS += -traditional
. elif ${CSTD} == "c89" || ${CSTD} == "c90" . elif ${CSTD} == "c89" || ${CSTD} == "c90"
@ -23,6 +23,8 @@ CFLAGS += -std=iso9899:1999
. else . else
CFLAGS += -std=${CSTD} CFLAGS += -std=${CSTD}
. endif . endif
.endif
.if !defined(NO_WARNS) && ${CC} != "icc"
# -pedantic is problematic because it also imposes namespace restrictions # -pedantic is problematic because it also imposes namespace restrictions
#CFLAGS += -pedantic #CFLAGS += -pedantic
. if defined(WARNS) . if defined(WARNS)