summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
authorMichael Orlitzky <michael@orlitzky.com>2024-02-07 22:08:18 -0500
committerJohn-Mark Bell <jmb@pexip.com>2024-02-08 20:36:52 +0000
commit251165e9d81815f0fc99eddffdc19e953aeac3d4 (patch)
treefca4a30afa7076de956d8f24843d6981121773af /src/core/document.c
parent885dba86dd2faef25444d576a7b8a367f2688ed9 (diff)
downloadlibdom-251165e9d81815f0fc99eddffdc19e953aeac3d4.tar.gz
libdom-251165e9d81815f0fc99eddffdc19e953aeac3d4.tar.bz2
bindings/xml/libxml_xmlparser.c: update for libxml2 >= 2.12.0
Version 2.12.0 of libxml2 changes a few functions to return (const xmlError *) where previously they returned only (xmlError *). Compilers generally are not happy with this. For example, bindings/xml/libxml_xmlparser.c: In function 'xml_parser_start_document': bindings/xml/libxml_xmlparser.c:327:16: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 327 | xmlerr = xmlCtxtGetLastError(parser->xml_ctx); This commit adds a few #ifdefs to handle both versions of the API cleanly. It's probably not the sexiest fix, but it's simple and gets the job done.
Diffstat (limited to 'src/core/document.c')
0 files changed, 0 insertions, 0 deletions