Skip to content

Commit

Permalink
FIX: support compilation with libxml2 2.12.0
Browse files Browse the repository at this point in the history
libxml2 2.12.0 now makes xmlGetLastError() return const pointer:
https://gitlab.gnome.org/GNOME/libxml2/-/commit/45470611b047db78106dcb2fdbd4164163c15ab7

Fix variable type using xmlGetLastError() as such.

Closes #357 .
  • Loading branch information
mtasaka authored and fbergmann committed Dec 7, 2023
1 parent fee56c9 commit a3e2178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sbml/xml/LibXMLParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ LibXMLParser::parseNext ()

if ( xmlParseChunk(mParser, mBuffer, bytes, done) )
{
xmlErrorPtr libxmlError = xmlGetLastError();
const xmlError* libxmlError = xmlGetLastError();

// I tried reporting the message from libXML that's available in
// libxmlError->message, but the thing is bogus: it will say things
Expand Down

0 comments on commit a3e2178

Please sign in to comment.