From: Matthew Fernandez Date: Sun, 11 Jul 2021 01:28:31 +0000 (-0700) Subject: disable -Wunused-parameter when building SWIG-generated Ruby bindings X-Git-Tag: 2.49.0~62^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4ba78030cfcf1a543cc2f4eddabbd5c127764b1;p=graphviz disable -Wunused-parameter when building SWIG-generated Ruby 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 91 compiler warnings. --- diff --git a/tclpkg/gv/Makefile.am b/tclpkg/gv/Makefile.am index 42e119319..e70941e12 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -257,6 +257,7 @@ libgv_ruby_la_SOURCES = $(BASESOURCES) gv_dummy_init.c libgv_ruby_la_LIBADD = $(BASELIBS) $(RUBY_LIBS) libgv_ruby_la_LDFLAGS = -module -avoid-version libgv_ruby_la_CPPFLAGS = $(BASECPPFLAGS) $(RUBY_CFLAGS) +libgv_ruby_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-parameter # $(RUBY_data): gv_ruby.cpp gv_ruby.cpp: gv.i $(SWIG) -c++ -ruby -o gv_ruby.cpp $(srcdir)/gv.i