tools/ocaml: cleanup to reduce compiler warnings
authorChristian Lindig <christian.lindig@citrix.com>
Wed, 14 Nov 2018 11:06:49 +0000 (11:06 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 14 Nov 2018 18:22:09 +0000 (18:22 +0000)
commitf99941871a844e1910c86434f9a0ed2e25bd9b2e
tree7c9bd7907b965b2b5168e54edf75bf50defbbc80
parentb05209196646c0c8c71978127edd0696a6a374e7
tools/ocaml: cleanup to reduce compiler warnings

This commit cleans up code to reduce compiler warnings:

* remove unused open statements (warning 33)
* remove unused 'rec' declarations (warnign 39)
* remove unused type declarations (warning 34)
* mark unused variables with an underscore (warning 27)
* mark unused value declarations with an underscore (warning 32)

This commit does not include changes to fix compiler warnings 52
(matching against strings in exceptions). These changes have no impact
on functionality.

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
16 files changed:
tools/ocaml/libs/xb/xb.ml
tools/ocaml/test/dmesg.ml
tools/ocaml/test/list_domains.ml
tools/ocaml/test/raise_exception.ml
tools/ocaml/test/send_debug_keys.ml
tools/ocaml/test/xtl.ml
tools/ocaml/xenstored/connections.ml
tools/ocaml/xenstored/domains.ml
tools/ocaml/xenstored/logging.ml
tools/ocaml/xenstored/parse_arg.ml
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/store.ml
tools/ocaml/xenstored/syslog.ml
tools/ocaml/xenstored/transaction.ml
tools/ocaml/xenstored/trie.ml
tools/ocaml/xenstored/xenstored.ml