]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcobol: fix compat w/ >=libxml2-2.12
authorSam James <sam@gentoo.org>
Sat, 25 Oct 2025 21:02:43 +0000 (22:02 +0100)
committerSam James <sam@gentoo.org>
Sat, 25 Oct 2025 21:02:48 +0000 (22:02 +0100)
libgcobol/ChangeLog:
PR cobol/122398

* xmlparse.cc (__gg__xml_parse): Make 'msg' const.

libgcobol/xmlparse.cc

index 69849e3311c65aeaf12afdfcad9bc479aa2c6fe5..57d370a39070349a72a080020921efa165f93001 100644 (file)
@@ -582,7 +582,7 @@ __gg__xml_parse(  const cblc_field_t *input_field,
   int erc = xmlSAXUserParseMemory(&handlers, nullptr, input, len);
 
   if( erc ) {
-    xmlErrorPtr        msg = xmlCtxtGetLastError(nullptr);
+    const xmlError* msg = xmlCtxtGetLastError(nullptr);
     fprintf(stderr, "XML PARSE: error: line %d: %s (%d: %d.%d.%d)\n",
             msg->line, msg->message, erc, msg->domain, msg->level, msg->code);
   }