X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2FMakefile.am;h=77b3bec5d48af470a452216194ed07229db31b5d;hb=9ade9a3bbc773a70ee8e1d4eae8e712b2cdb5938;hp=7d58b7324f13905ff37fa246dbb06abce0164092;hpb=a1ac73cff6a4235ffc4c231133722888e24ed93b;p=babeltrace.git diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index 7d58b732..77b3bec5 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -127,6 +127,14 @@ WARN_CFLAGS += -Wno-redundant-decls WARN_CFLAGS += -Wno-missing-field-initializers WARN_CFLAGS += -Wno-unused-parameter +# 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" \