From: Matthew Fernandez Date: Sun, 11 Jul 2021 02:35:01 +0000 (-0700) Subject: disable -Wunused-variable when building SWIG-generated OCaml bindings X-Git-Tag: 2.49.0~62^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cbfadcf870c0a41dbb63984b91bd6c2950f921e;p=graphviz 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. --- 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