From 1cbfadcf870c0a41dbb63984b91bd6c2950f921e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 10 Jul 2021 19:35:01 -0700 Subject: [PATCH] disable -Wunused-variable when building SWIG-generated OCaml 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 112 compiler warnings. --- 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 b6cb60eae..baa968492 100644 --- a/tclpkg/gv/Makefile.am +++ b/tclpkg/gv/Makefile.am @@ -162,7 +162,8 @@ libgv_ocaml_la_CPPFLAGS = \ $(OCAML_INCLUDES) \ -Dint64=int64_t \ -fpermissive -libgv_ocaml_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-function +libgv_ocaml_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-function \ + -Wno-unused-variable gv.ml gv.mli: gv_ocaml.cpp gv_ocaml.cpp: gv.i $(SWIG) -c++ -ocaml -o gv_ocaml.cpp $(srcdir)/gv.i -- 2.40.0