summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-05-05 21:13:32 +0000
committerdes <des@FreeBSD.org>2003-05-05 21:13:32 +0000
commit2a6383574ff021797507365a1b2e8d2f5bec77e8 (patch)
tree0a44925484cad1a61d15151fdd435a3c9cc40cb0 /share/mk/bsd.sys.mk
parent828797f0296a20222e1a5922434ae9b832b932c4 (diff)
downloadFreeBSD-src-2a6383574ff021797507365a1b2e8d2f5bec77e8.zip
FreeBSD-src-2a6383574ff021797507365a1b2e8d2f5bec77e8.tar.gz
Don't use -pedantic unless we also set -std of some kind.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 65d8e6f..efca42b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -18,7 +18,10 @@ CFLAGS += -std=iso9899:1990
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
@@ -38,7 +41,7 @@ CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-al
. endif
# BDECFLAGS
. if ${WARNS} > 5
-CFLAGS += -pedantic -Wno-long-long -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
+CFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
. endif
. if ${WARNS} > 1 && ${WARNS} < 5
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
OpenPOWER on IntegriCloud