Enable same warnings as libguestfs.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 27 Mar 2017 11:21:48 +0000 (12:21 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 27 Mar 2017 11:21:48 +0000 (12:21 +0100)
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.

src/Makefile.in

index d29f2e8..d744fd7 100755 (executable)
@@ -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)