Fix: disable deprecation warnings for SWIG generated code
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 26 Jan 2021 20:14:09 +0000 (15:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2021 20:26:54 +0000 (15:26 -0500)
There is nothing we can do about deprecations in SWIG generated code so
silence this warning.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia3188e6e8fcb52a635d6793f4a40808479860252

src/bindings/python/bt2/Makefile.am

index e552d22892f8c0e5c5ee7e4d227f98c43749f98a..7efab895abd069c095584bb4877ca18acba4e6c9 100644 (file)
@@ -112,6 +112,11 @@ WARN_CFLAGS = -Wno-shadow
 
 WARN_CFLAGS += -Wno-null-dereference
 
+# Python 3.8 with SWIG 4.0.2 generates a deprecated warning for 'tp_print'
+# and in general there is not much we can do about deprecations in generated
+# code.
+WARN_CFLAGS += -Wno-deprecated-declarations
+
 BUILD_FLAGS=CC="$(CC)" \
                CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \
                CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \
This page took 0.024698 seconds and 4 git commands to generate.