From b4ba78030cfcf1a543cc2f4eddabbd5c127764b1 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 10 Jul 2021 18:28:31 -0700 Subject: [PATCH] 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. --- tclpkg/gv/Makefile.am | 1 + 1 file changed, 1 insertion(+) 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 -- 2.40.0