From 824b21ae0065c007a53f3272636e17ab77d17184 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 10 Apr 2002 02:45:22 +0000 Subject: Add WARNS levels 5 and 6: 5 gives us -Wuninitialized rather than -Wno-uninitialized 6 gives us full BDECFLAGS --- share/mk/bsd.sys.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'share/mk/bsd.sys.mk') diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index eb5f12d..f5740da 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -22,7 +22,14 @@ CFLAGS += -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith . if ${WARNS} > 3 CFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align . endif -. if ${WARNS} > 1 +. if ${WARNS} > 4 +CFLAGS += -Wuninitialized +. endif +# BDECFLAGS +. if ${WARNS} > 5 +CFLAGS += -ansi -pedantic -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 # XXX always get it right. CFLAGS += -Wno-uninitialized -- cgit v1.1