mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +02:00
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:
+2
-2
@@ -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//")
|
||||
|
||||
Reference in New Issue
Block a user