X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=extras%2Fbindings%2Fswig%2Fpython%2FMakefile.am;h=5d9bcc127ebded1dee0ee7a92069dfda03242fa3;hb=6e11909ebb204e4a0f9651dc6c58f74c8376a094;hp=a8fd56d806ed300fc71aff206b51827c3b92d8f7;hpb=67ce756361aa64f41deac3705e0dd861f7e89a02;p=lttng-tools.git diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am index a8fd56d80..5d9bcc127 100644 --- a/extras/bindings/swig/python/Makefile.am +++ b/extras/bindings/swig/python/Makefile.am @@ -7,12 +7,18 @@ lttng.i: lttng.i.in # `swig_this` shadows a global of the same name. Later versions (like 4.0.1) # have renamed this global to `Swig_This_global`. # -# Disable -Wshadow for that file. -AM_CFLAGS += -Wno-shadow - -AM_CFLAGS += -Wno-missing-field-initializers - -AM_CFLAGS += -Wno-cast-function-type +# Disable some warning flags for that file. +AM_CFLAGS += \ + -Wno-cast-function-type \ + -Wno-missing-field-initializers \ + -Wno-null-dereference \ + -Wno-redundant-decls \ + -Wno-shadow \ + -Wno-unused-parameter + +# Swig regularily changes and generates code that results warnings which break +# Werror builds. Disable that option for this sub-project. +AM_CFLAGS += -Wno-error AM_CPPFLAGS += $(PYTHON_INCLUDE)