Blame SOURCES/0009-mlxml-Fix-pointed-target-signedness.patch

5ce0c7
From 8eb9f06b156c6362a17712cfed9c629dec297a2c Mon Sep 17 00:00:00 2001
5ce0c7
From: "Richard W.M. Jones" <rjones@redhat.com>
5ce0c7
Date: Thu, 6 Feb 2020 10:22:42 +0000
5ce0c7
Subject: [PATCH] mlxml: Fix pointed target signedness.
5ce0c7
5ce0c7
xml-c.c: In function 'mllib_xml_to_string':
5ce0c7
xml-c.c:199:47: error: pointer targets in passing argument 2 of 'caml_alloc_initialized_string' differ in signedness [-Werror=pointer-sign]
5ce0c7
  199 |   strv = caml_alloc_initialized_string (size, mem);
5ce0c7
      |                                               ^~~
5ce0c7
      |                                               |
5ce0c7
      |                                               xmlChar * {aka unsigned char *}
5ce0c7
5ce0c7
(cherry picked from commit ea10827b4cfb3cfe5f782421c01d2902e5f73f90)
5ce0c7
---
5ce0c7
 common/mlxml/xml-c.c | 2 +-
5ce0c7
 1 file changed, 1 insertion(+), 1 deletion(-)
5ce0c7
5ce0c7
diff --git a/common/mlxml/xml-c.c b/common/mlxml/xml-c.c
5ce0c7
index a0fa0fc3d..715c3bb24 100644
5ce0c7
--- a/common/mlxml/xml-c.c
5ce0c7
+++ b/common/mlxml/xml-c.c
5ce0c7
@@ -196,7 +196,7 @@ mllib_xml_to_string (value docv, value formatv)
5ce0c7
   doc = docptr_val (docv);
5ce0c7
   xmlDocDumpFormatMemory (doc, &mem, &size, Bool_val (formatv));
5ce0c7
 
5ce0c7
-  strv = caml_alloc_initialized_string (size, mem);
5ce0c7
+  strv = caml_alloc_initialized_string (size, (const char *) mem);
5ce0c7
   free (mem);
5ce0c7
 
5ce0c7
   CAMLreturn (strv);
5ce0c7
-- 
5ce0c7
2.18.4
5ce0c7