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

tclpkg/gv/Makefile.am

index e6fba37528f18dbb4076a5571061eabdb7d6938d..b6cb60eae42fd7cc3cc9e499a66fa6c65e5a05d2 100644 (file)
@@ -162,6 +162,7 @@ libgv_ocaml_la_CPPFLAGS = \
        $(OCAML_INCLUDES) \
        -Dint64=int64_t \
        -fpermissive
+libgv_ocaml_la_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-function
 gv.ml gv.mli: gv_ocaml.cpp
 gv_ocaml.cpp: gv.i
        $(SWIG) -c++ -ocaml -o gv_ocaml.cpp $(srcdir)/gv.i