1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Put on the core hat and back out all of the CSTD= changes. Core will

deal with working with the parties to define a coherent definition for
CSTD that doesn't break things.

Core hat seconded by: markm
This commit is contained in:
Warner Losh 2003-06-14 17:41:59 +00:00
parent 1d1f8d7c90
commit 139c58b300
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116342

View File

@ -9,20 +9,6 @@
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
.if !defined(NO_WARNS)
. if defined(CSTD)
. if ${CSTD} == "k&r"
CFLAGS += -traditional
. elif ${CSTD} == "c89" || ${CSTD} == "c90"
CFLAGS += -std=iso9899:1990
. elif ${CSTD} == "c94" || ${CSTD} == "c95"
CFLAGS += -std=iso9899:199409
. elif ${CSTD} == "c99"
CFLAGS += -std=iso9899:1999
. else
CFLAGS += -std=${CSTD}
. endif
CFLAGS += -pedantic
. endif
. if defined(WARNS)
. if ${WARNS} > 0
CFLAGS += -Wsystem-headers