]> granicus.if.org Git - graphviz/commitdiff
disable -Wunused-parameter when building SWIG-generated PHP bindings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Jul 2021 02:12:54 +0000 (19:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Jul 2021 18:36:52 +0000 (11:36 -0700)
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.

tclpkg/gv/Makefile.am

index e70941e12981b96727cf8d5e7ec178c1079b8455..9f9ed66be108b8d38d5550f9c968fc0b7de2ffa2 100644 (file)
@@ -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