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