# `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)
nodist__lttng_la_SOURCES = lttng_wrap.c
_lttng_la_LDFLAGS = -module
_lttng_la_LIBADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
- $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la \
- $(top_builddir)/src/common/libcommon.la
+ $(top_builddir)/src/common/libsessiond-comm.la \
+ $(top_builddir)/src/common/libcommon-gpl.la
lttng_wrap.c: lttng.i
$(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i