Files
termux-packages/packages/libmusicbrainz/src-xmlParser-cc.patch
termux-pacman-bot ac9a8f843d fix(main/libmusicbrainz): Fix building with current clang
Fix the following build error:
> [..]/xmlParser.cc:59:21: error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *') with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
>        xmlErrorPtr error = xmlGetLastError();
>                    ^       ~~~~~~~~~~~~~~~~~
> [..]/xmlParser.cc:74:21: error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *') with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
>        xmlErrorPtr error = xmlGetLastError();
2024-05-16 20:37:11 +00:00

22 lines
884 B
Diff

diff -u -r ../libmusicbrainz-5.1.0/src/xmlParser.cc ./src/xmlParser.cc
--- ../libmusicbrainz-5.1.0/src/xmlParser.cc 2014-11-13 13:12:24.000000000 +0000
+++ ./src/xmlParser.cc 2024-05-16 18:14:46.942518237 +0000
@@ -56,7 +56,7 @@
doc = xmlParseFile(filename.c_str());
if ((doc == NULL) && (results != NULL)) {
- xmlErrorPtr error = xmlGetLastError();
+ const xmlError * error = xmlGetLastError();
results->message = error->message;
results->line = error->line;
results->code = error->code;
@@ -71,7 +71,7 @@
doc = xmlParseMemory(xml.c_str(), xml.length());
if ((doc == NULL) && (results != NULL)) {
- xmlErrorPtr error = xmlGetLastError();
+ const xmlError * error = xmlGetLastError();
results->message = error->message;
results->line = error->line;
results->code = error->code;