From 92d25c18268b14a4a05f25b79231293223003093 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 10 Oct 2022 21:03:03 -0700 Subject: [PATCH] suppress -Wmissing-field-initializers warnings when building PHP bindings SWIG-generated code produces warnings on some platforms: CXX libgv_php_la-gv_php.lo gv_php.cpp:5389:1: error: missing initializer for member '_zend_function_entry::num_args' [-Werror=missing-field-initializers] }; ^ It is not helpful to be told about problems in third-party code. Suppressing these will enable us to make -Wmissing-field-initializers fail-on-warning in future. --- tclpkg/gv/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am index 5b79c265f..4cf27b25e 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -192,7 +192,8 @@ libgv_php_la_SOURCES = $(BASESOURCES) gv_php_init.c libgv_php_la_LIBADD = $(BASELIBS) $(PHP_LIBS) libgv_php_la_LDFLAGS = -module -avoid-version libgv_php_la_CPPFLAGS = $(BASECPPFLAGS) $(PHP_INCLUDES:-I%=-isystem%) -libgv_php_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-label -Wno-unused-parameter +libgv_php_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-missing-field-initializers \ + -Wno-unused-label -Wno-unused-parameter gv.php: gv_php.cpp php_gv.h: gv_php.cpp gv_php.cpp: gv.i -- 2.40.0