Python bindings: silence warnings in generated code
[lttng-tools.git] / extras / bindings / swig / python / Makefile.am
index 15dea077dedce8cb3f99b3c57aa5dc4b7132459f..5d9bcc127ebded1dee0ee7a92069dfda03242fa3 100644 (file)
@@ -7,8 +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
+# 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)
 
This page took 0.02326 seconds and 4 git commands to generate.