Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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>
  • Loading branch information...
commit 962c10795d5a613dbc8edce517a26a340e74f0b5 1 parent c00ad1a
Uli Schlachter psychon authored
Showing with 4 additions and 1 deletion.
  1. +1 −0  modules/modperl/Makefile.inc
  2. +3 −1 modules/modpython/Makefile.inc
1  modules/modperl/Makefile.inc
View
@@ -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)
4 modules/modpython/Makefile.inc
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.