-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
This commit is contained in:
ru 2003-04-04 10:47:06 +00:00
parent 71a96a3848
commit db5ec15123

View File

@ -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