]> granicus.if.org Git - graphviz/commitdiff
disable -Wunused-variable when building SWIG-generated OCaml bindings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Jul 2021 02:35:01 +0000 (19:35 -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 112 compiler warnings.

tclpkg/gv/Makefile.am

index b6cb60eae42fd7cc3cc9e499a66fa6c65e5a05d2..baa968492e2f6b6628753859d6fe37955f1de6dc 100644 (file)
@@ -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