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