https://gcc.gnu.org/g:c1b9b3812dfe0cab3fc2dd9abc1f1f4afc422339

commit r16-4622-gc1b9b3812dfe0cab3fc2dd9abc1f1f4afc422339
Author: Sam James <[email protected]>
Date:   Sat Oct 25 22:02:43 2025 +0100

    libgcobol: fix compat w/ >=libxml2-2.12
    
    libgcobol/ChangeLog:
            PR cobol/122398
    
            * xmlparse.cc (__gg__xml_parse): Make 'msg' const.

Diff:
---
 libgcobol/xmlparse.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcobol/xmlparse.cc b/libgcobol/xmlparse.cc
index 69849e3311c6..57d370a39070 100644
--- a/libgcobol/xmlparse.cc
+++ b/libgcobol/xmlparse.cc
@@ -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);
   }

Reply via email to