summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-01-16 21:08:31 +0000
committerobrien <obrien@FreeBSD.org>2005-01-16 21:08:31 +0000
commit5568092622753fcc85db602f130361a6db42f249 (patch)
tree320cda41d92c23c8bbbda31063e70b0cb5cf9ea0 /share
parentd11aba881e78a58bd8dd91fa3044dd114ec826ed (diff)
downloadFreeBSD-src-5568092622753fcc85db602f130361a6db42f249.zip
FreeBSD-src-5568092622753fcc85db602f130361a6db42f249.tar.gz
Use >= so we can use the actual WARNS levels.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.sys.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 3821801..e68ecb9 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -10,26 +10,26 @@
.if !defined(NO_WARNS) && ${CC} != "icc"
. if defined(WARNS)
-. if ${WARNS} > 0
+. if ${WARNS} >= 1
CWARNFLAGS += -Wsystem-headers
. if !defined(NO_WERROR)
CWARNFLAGS += -Werror
. endif
. endif
-. if ${WARNS} > 1
+. if ${WARNS} >= 2
CWARNFLAGS += -Wall -Wno-format-y2k
. endif
-. if ${WARNS} > 2
+. if ${WARNS} >= 3
CWARNFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
. endif
-. if ${WARNS} > 3
+. if ${WARNS} >= 4
CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
. endif
# BDECFLAGS
-. if ${WARNS} > 5
+. if ${WARNS} >= 6
CWARNFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
. endif
-. if ${WARNS} > 1 && ${WARNS} < 5
+. if ${WARNS} >= 2 && ${WARNS} <= 4
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't
# XXX always get it right.
CWARNFLAGS += -Wno-uninitialized
OpenPOWER on IntegriCloud