From 3836459448570db9604fe73afff3dc7edd12cb11 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 26 Jan 2021 15:14:09 -0500 Subject: [PATCH] Fix: disable deprecation warnings for SWIG generated code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bindings/python/bt2/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index ab5b7795..ec30c005 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -114,6 +114,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" \ -- 2.34.1