From: Michael Jeanson Date: Tue, 26 Jan 2021 20:14:09 +0000 (-0500) Subject: Fix: disable deprecation warnings for SWIG generated code X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=3836459448570db9604fe73afff3dc7edd12cb11 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 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" \