mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Unbreak NO_WARNS, keeping CSTD effect on CFLAGS out of its control.
Unbreak compiles with icc.
This commit is contained in:
parent
5d98bcc2ff
commit
b48db8e12d
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue