mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Disable some more warnings on mod{perl,python}
It seems to me like swig is trying to trigger every warning that exists... Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -6,6 +6,7 @@ PERL_CXX := $(shell $(PERL) -MExtUtils::Embed -e perl_inc)
|
||||
PERL_LD := $(shell $(PERL) -MExtUtils::Embed -e ldopts)
|
||||
# Perl API is ugly, casting string literals to char* and redeclaring functions :(
|
||||
PERL_CXX += -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations
|
||||
PERL_CXX += -Wno-type-limits -Wno-sign-compare -Wno-strict-overflow
|
||||
# This is for SWIG
|
||||
PERL_CXX += -DSWIG_TYPE_TABLE=znc
|
||||
modperlCXXFLAGS := $(PERL_CXX)
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
ifeq "$(PYTHON_ON)" "yes"
|
||||
PYTHONCOMMON := $(PY_CFLAGS)
|
||||
PYTHONCOMMON += -DSWIG_TYPE_TABLE=znc
|
||||
# Could someone fix all of these in swig / python, please?
|
||||
PYTHONCOMMON += -Wno-missing-field-initializers -Wno-unused -Wno-shadow
|
||||
PYTHONCOMMON += -Wno-missing-declarations -Wno-uninitialized
|
||||
PYTHONCOMMON += -Wno-missing-declarations -Wno-uninitialized -Wno-switch-enum
|
||||
PYTHONCOMMON += -Wno-redundant-decls
|
||||
modpythonCXXFLAGS := $(PYTHONCOMMON) -I.
|
||||
modpythonLDFLAGS := $(PY_LDFLAGS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user