projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: disable deprecation warnings for SWIG generated code
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
Makefile.am
diff --git
a/src/bindings/python/bt2/Makefile.am
b/src/bindings/python/bt2/Makefile.am
index d89907ce7d323376ecbe54d600be999a875400b6..ec30c005c91468215470cc9306cfdad23809099f 100644
(file)
--- a/
src/bindings/python/bt2/Makefile.am
+++ b/
src/bindings/python/bt2/Makefile.am
@@
-1,3
+1,5
@@
+# SPDX-License-Identifier: MIT
+
# Since the shared object used by the python bindings is not built with
# libtool, we need to add the directory containing libbabeltrace2 to the
# linker path.
# Since the shared object used by the python bindings is not built with
# libtool, we need to add the directory containing libbabeltrace2 to the
# linker path.
@@
-112,6
+114,11
@@
WARN_CFLAGS = -Wno-shadow
WARN_CFLAGS += -Wno-null-dereference
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" \
BUILD_FLAGS=CC="$(CC)" \
CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \
CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \
This page took
0.024701 seconds
and
4
git commands to generate.