summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-05-31 16:37:22 +0000
committerobrien <obrien@FreeBSD.org>2003-05-31 16:37:22 +0000
commit8c39502975cf4f5d36d87e3991fb70ba5ce2f8ac (patch)
treefcbd22f57c7adccb5814025ea7de47131eb10894 /share/mk/bsd.sys.mk
parentf838ed4668100a8d9c290e153c517b58302931f0 (diff)
downloadFreeBSD-src-8c39502975cf4f5d36d87e3991fb70ba5ce2f8ac.zip
FreeBSD-src-8c39502975cf4f5d36d87e3991fb70ba5ce2f8ac.tar.gz
CSTD is virtually worthless for WARNS=2-5. Return -pedantic to WARNS=6+.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index f32f980..6d40e80 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -21,7 +21,6 @@ CFLAGS += -std=iso9899:1999
. else
CFLAGS += -std=${CSTD}
. endif
-CFLAGS += -pedantic
. endif
. if defined(WARNS)
. if ${WARNS} > 0
@@ -41,6 +40,9 @@ CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-al
. endif
# BDECFLAGS
. if ${WARNS} > 5
+. if defined(CSTD)
+CFLAGS += -pedantic
+. endif
CFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
. endif
. if ${WARNS} > 1 && ${WARNS} < 5
OpenPOWER on IntegriCloud