From a743dd248edc9781668acf8b22751f594bb72df2 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 14 Mar 2009 14:48:26 +0000 Subject: [PATCH] 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 --- modules/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Makefile.in b/modules/Makefile.in index 4deb513a..110838fd 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -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//")