Merge pull request #4423 from hummeltech/LibXML2_2.12.0_Support

Fix broken builds with libxml2 >= v2.12.0
This commit is contained in:
Artem Pavlenko 2023-11-21 09:16:08 +00:00 committed by GitHub
commit 437feebaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ class libxml2_loader : util::noncopyable
if (!doc)
{
xmlError* error = xmlCtxtGetLastError(ctx_);
const xmlError* error = xmlCtxtGetLastError(ctx_);
if (error)
{
std::string msg("XML document not well formed:\n");
@ -128,7 +128,7 @@ class libxml2_loader : util::noncopyable
if (!doc)
{
std::string msg("XML document not well formed");
xmlError* error = xmlCtxtGetLastError(ctx_);
const xmlError* error = xmlCtxtGetLastError(ctx_);
if (error)
{
msg += ":\n";