Makefile: Add -Wno-redundant-decls to modperlFLAGS

While experimenting with some warning flags I found another one which breaks
the perl headers. This warning is triggered by code like this:

 void bla();
 void bla();

Sadly, the perl headers do this for some weird reason :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1427 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-03-14 14:48:26 +00:00
parent 599aba7428
commit a743dd248e
+2 -2
View File
@@ -44,8 +44,8 @@ endif
ifneq "$(PERL)" ""
# We execute this now so that we see the 'beauty' of these flags in make's output
modperlFLAGS := $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts)
# Perl API is ugly, casting string literals to char* :(
modperlFLAGS += -Wno-write-strings
# Perl API is ugly, casting string literals to char* and redeclaring functions :(
modperlFLAGS += -Wno-write-strings -Wno-redundant-decls
PERLHOOK := modperl_install
else
FILES := $(shell echo $(FILES) | sed -e "s/modperl//")