1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Remove -Wbad-function-cast. Its main purpose is to catch bugs that we

already catch with -Wstrict-prototypes, and it causes spurious warnings
for some perfectly legitimate constructs.
This commit is contained in:
Dag-Erling Smørgrav 2004-02-16 20:07:06 +00:00
parent 6f29aba23f
commit 5193980ced
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125884

View File

@ -27,7 +27,7 @@ CWARNFLAGS += -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast
. endif
# BDECFLAGS
. if ${WARNS} > 5
CWARNFLAGS += -Wbad-function-cast -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
CWARNFLAGS += -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
. endif
. if ${WARNS} > 1 && ${WARNS} < 5
# XXX Delete -Wuninitialized by default for now -- the compiler doesn't