diff options
-rw-r--r-- | share/mk/bsd.sys.mk | 12 |
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 |