From: Sam James Date: Sat, 25 Oct 2025 21:02:43 +0000 (+0100) Subject: libgcobol: fix compat w/ >=libxml2-2.12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1b9b3812dfe0cab3fc2dd9abc1f1f4afc422339;p=thirdparty%2Fgcc.git libgcobol: fix compat w/ >=libxml2-2.12 libgcobol/ChangeLog: PR cobol/122398 * xmlparse.cc (__gg__xml_parse): Make 'msg' const. --- diff --git a/libgcobol/xmlparse.cc b/libgcobol/xmlparse.cc index 69849e3311c..57d370a3907 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); }