From bc27cba087649bc45346c9a2c126cd4b9817b542 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 16 Feb 2004 20:07:06 +0000 Subject: 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. --- share/mk/bsd.sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index d473079..587bc84 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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 -- cgit v1.1