Blame SOURCES/0006-Enable-same-warnings-as-libguestfs.patch

3c50ef
From 5500a027ad231eb5bb16e36efee72b48cfac9528 Mon Sep 17 00:00:00 2001
3c50ef
From: "Richard W.M. Jones" <rjones@redhat.com>
3c50ef
Date: Mon, 27 Mar 2017 12:21:48 +0100
3c50ef
Subject: [PATCH 06/17] Enable same warnings as libguestfs.
3c50ef
3c50ef
In particular 'warning 3' was still enabled before, meaning that the
3c50ef
code would fail with newer OCaml compilers:
3c50ef
3c50ef
  File "top.ml", line 377, characters 12-25:
3c50ef
  Warning 3: deprecated: String.create
3c50ef
  Use Bytes.create instead.
3c50ef
3c50ef
Since we want to continue using old OCaml for now, don't enable
3c50ef
this warning.
3c50ef
---
3c50ef
 src/Makefile.in | 2 +-
3c50ef
 1 file changed, 1 insertion(+), 1 deletion(-)
3c50ef
3c50ef
diff --git a/src/Makefile.in b/src/Makefile.in
3c50ef
index d29f2e8..d744fd7 100755
3c50ef
--- a/src/Makefile.in
3c50ef
+++ b/src/Makefile.in
3c50ef
@@ -64,7 +64,7 @@ OBJS		+= main.cmo
3c50ef
 
3c50ef
 XOBJS		:= $(OBJS:.cmo=.cmx)
3c50ef
 
3c50ef
-OCAMLCFLAGS	:= -g -warn-error A-3
3c50ef
+OCAMLCFLAGS	:= -g -warn-error CDEFLMPSUVYZX-3
3c50ef
 OCAMLCLIBS	:= -linkpkg
3c50ef
 
3c50ef
 OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
3c50ef
-- 
3c50ef
2.9.3
3c50ef