generator.ml: avoid defined-but-not-used warnings in guestfs_c_actions.c
authorJim Meyering <meyering@redhat.com>
Fri, 28 Aug 2009 11:53:36 +0000 (13:53 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 28 Aug 2009 11:53:36 +0000 (13:53 +0200)
commitba5842c1147f4463fce7f613618938fd5b9a1c1a
tree7c55deb5b2a33b6244fe1df1a7ec53760cfb8a30
parent23740528cd2d75a236aae1fb5d073e8be2e5a295
generator.ml: avoid defined-but-not-used warnings in guestfs_c_actions.c

* src/generator.ml (emit_ocaml_copy_list_function): New function.
Emit a function definition only if it will be used.
src/generator.ml