From: Matthew Fernandez Date: Sun, 11 Jul 2021 02:12:54 +0000 (-0700) Subject: disable -Wunused-parameter when building SWIG-generated PHP bindings X-Git-Tag: 2.49.0~62^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=649e11d5b34ba7a9ec0cc0a1012511c7ff72b743;p=graphviz disable -Wunused-parameter when building SWIG-generated PHP bindings There is no value to warning about things like this in generated code, which are just artifacts of how SWIG code generation works. Removes 4 compiler warnings. --- diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am index e70941e12..9f9ed66be 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -212,6 +212,7 @@ 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) +libgv_php_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-parameter gv.php: gv_php.cpp php_gv.h: gv_php.cpp gv_php.cpp: gv.i