From: Richard W.M. Jones Date: Mon, 27 Mar 2017 11:21:48 +0000 (+0100) Subject: Enable same warnings as libguestfs. X-Git-Tag: v1.0.9~16 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=5500a027ad231eb5bb16e36efee72b48cfac9528;p=virt-top.git Enable same warnings as libguestfs. In particular 'warning 3' was still enabled before, meaning that the code would fail with newer OCaml compilers: File "top.ml", line 377, characters 12-25: Warning 3: deprecated: String.create Use Bytes.create instead. Since we want to continue using old OCaml for now, don't enable this warning. --- diff --git a/src/Makefile.in b/src/Makefile.in index d29f2e8..d744fd7 100755 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -64,7 +64,7 @@ OBJS += main.cmo XOBJS := $(OBJS:.cmo=.cmx) -OCAMLCFLAGS := -g -warn-error A-3 +OCAMLCFLAGS := -g -warn-error CDEFLMPSUVYZX-3 OCAMLCLIBS := -linkpkg OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)