X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;fp=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;h=b74821ae8d81445b657c1a4b4734fc04e9eace28;hp=20f142e4e07004a4e5065c7b4c2e0b95509d5a97;hb=d7e2a9ad8351a542a30c7fdc603adf83249f928b;hpb=f84425c54b94cd14cd288c21475db7f4958fc6ae diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index 20f142e4..b74821ae 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -120,6 +120,14 @@ WARN_CFLAGS += -Wno-deprecated-declarations # Python 3.11 + gcc 12.2.0 gave warnings of this kind in Python.h. WARN_CFLAGS += -Wno-redundant-decls +# SWIG 4.2.0 generates: +# +# #if __cplusplus >=201103L +# +# ... leading to some `-Wundef` warnings when building the extension as C, where +# `__cplusplus` is not defined. +WARN_CFLAGS += -Wno-undef + BUILD_FLAGS=CC="$(CC)" \ CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \ CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \