From: Michael Jeanson Date: Tue, 26 Jan 2021 20:14:09 +0000 (-0500) Subject: Fix: disable deprecation warnings for SWIG generated code X-Git-Tag: v2.0.4~9 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=5dea6fddfc4c91e3db715e7ba7d59d9b1db835a0 Fix: disable deprecation warnings for SWIG generated code There is nothing we can do about deprecations in SWIG generated code so silence this warning. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau Change-Id: Ia3188e6e8fcb52a635d6793f4a40808479860252 --- diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index e552d228..7efab895 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -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" \