mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
-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:
parent
340ff79fa8
commit
0e80a2f601
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113066
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user