reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit d1569d4cb71e34c8cfec373e2aabbe687a819506
parent a46b7e317f7b278bbe723b95a16e5d347f675a20
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat,  3 Feb 2024 09:39:47 -0500

fix compilation with GCC 13 & libxml2 2.12

src/xml_libxml2.cpp: In member function ‘const char* XmlDocument::error() const’:
src/xml_libxml2.cpp:62:39: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlError*’ {aka ‘_xmlError*’} [-fpermissive]
   62 |   if(xmlError *error = xmlGetLastError()) {
      |                        ~~~~~~~~~~~~~~~^~
      |                                       |
      |                                       const xmlError* {aka const _xmlError*}

Diffstat:
Msrc/xml_libxml2.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xml_libxml2.cpp b/src/xml_libxml2.cpp @@ -59,7 +59,7 @@ XmlDocument::operator bool() const const char *XmlDocument::error() const { - if(xmlError *error = xmlGetLastError()) { + if(const xmlError *error = xmlGetLastError()) { const size_t length = strlen(error->message); if(length > 1) { // remove trailing newline