From db5ec15123daf122ff48a5939b9b1a3d3a32abbf Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 4 Apr 2003 10:47:06 +0000 Subject: -Wall implies -Wuninitialized if -O is also in effect. -Wuninitialized does not work without -O. This fixes the ${WARNS} > 4 compilations with -O0. Spotted by: marcel --- share/mk/bsd.sys.mk | 3 --- 1 file changed, 3 deletions(-) (limited to 'share/mk/bsd.sys.mk') diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 0d55b19..f1bc89e 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -25,9 +25,6 @@ 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} > 4 -CFLAGS += -Wuninitialized -. endif # BDECFLAGS . if ${WARNS} > 5 CFLAGS += -ansi -pedantic -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -- cgit v1.1