From ae6ee563d8c48e3af02aa0427e504d4a90570368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 27 Mar 2024 13:48:45 -0400 Subject: [PATCH] bt2: disable some warnings for `native_bt.c` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Replicate the changes done in the master branch by building native_bt.c with the -Wno-unused-parameter and -Wno-missing-field-initializers options. Those changes were lifted from commits dd420a9 and ecd7492. Signed-off-by: Jérémie Galarneau Change-Id: I5e1f57f47f5bf81ef395707cccafaf0c15f9f8a1 Reviewed-on: https://review.lttng.org/c/babeltrace/+/12192 Tested-by: jenkins --- src/bindings/python/bt2/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindings/python/bt2/Makefile.am b/src/bindings/python/bt2/Makefile.am index b74821ae..e3e3cbb6 100644 --- a/src/bindings/python/bt2/Makefile.am +++ b/src/bindings/python/bt2/Makefile.am @@ -128,6 +128,10 @@ WARN_CFLAGS += -Wno-redundant-decls # `__cplusplus` is not defined. WARN_CFLAGS += -Wno-undef +# For SWIG generated code +WARN_CFLAGS += -Wno-missing-field-initializers +WARN_CFLAGS += -Wno-unused-parameter + BUILD_FLAGS=CC="$(CC)" \ CFLAGS="$(GLIB_CFLAGS) $(AM_CFLAGS) $(CFLAGS) $(WARN_CFLAGS)" \ CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) -I$(srcdir)/bt2" \ -- 2.34.1