34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From 89617fbe8867254b8c5a77c7fd28ab7746338751 Mon Sep 17 00:00:00 2001
|
||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||
|
Date: Tue, 5 Oct 2021 20:53:25 +0100
|
||
|
Subject: [PATCH 3/5] customize: Suppress OCaml warning
|
||
|
|
||
|
In OCaml 4.13:
|
||
|
|
||
|
File "perl_edit.ml", line 30, characters 2-13:
|
||
|
30 | c_edit_file (verbose ()) g (Guestfs.c_pointer g) file expr
|
||
|
^^^^^^^^^^^
|
||
|
Error (warning 6 [labels-omitted]): label verbose was omitted in the application of this function.
|
||
|
|
||
|
(cherry picked from commit a4930f5fad82e5358d565b8cf3610970e9646259)
|
||
|
---
|
||
|
m4/guestfs-ocaml.m4 | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/m4/guestfs-ocaml.m4 b/m4/guestfs-ocaml.m4
|
||
|
index d2b3804a..8a23877c 100644
|
||
|
--- a/m4/guestfs-ocaml.m4
|
||
|
+++ b/m4/guestfs-ocaml.m4
|
||
|
@@ -166,7 +166,7 @@ EOF
|
||
|
])
|
||
|
|
||
|
dnl Flags we want to pass to every OCaml compiler call.
|
||
|
-OCAML_WARN_ERROR="-warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3"
|
||
|
+OCAML_WARN_ERROR="-warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3-6"
|
||
|
AC_SUBST([OCAML_WARN_ERROR])
|
||
|
OCAML_FLAGS="-g -annot $safe_string_option"
|
||
|
AC_SUBST([OCAML_FLAGS])
|
||
|
--
|
||
|
2.31.1
|
||
|
|