mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
Fix build with libxml2 2.14:
|
|
|
|
src/xml_pyx.c:203:36: error: expected ')'
|
|
pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|
^
|
|
src/xml_pyx.c:203:25: note: to match this '('
|
|
pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|
^
|
|
|
|
https://sourceforge.net/p/xmlstar/patches/23/
|
|
--- src/xml_pyx.c
|
|
+++ src/xml_pyx.c
|
|
@@ -200,7 +200,7 @@ pyxExternalEntityReferenceHandler(void* userData,
|
|
}
|
|
|
|
static void
|
|
-pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|
+pyxExternalSubsetHandler(void *ctx, const xmlChar *name,
|
|
const xmlChar *ExternalID, const xmlChar *SystemID)
|
|
{
|
|
fprintf(stdout, "D %s PUBLIC", name); /* TODO: re-check */
|
|
@@ -215,7 +215,7 @@ pyxExternalSubsetHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
|
|
}
|
|
|
|
static void
|
|
-pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
|
|
+pyxCommentHandler(void *ctx, const xmlChar *value)
|
|
{
|
|
fprintf(stdout,"C");
|
|
SanitizeData(value, xmlStrlen(value));
|
|
@@ -223,7 +223,7 @@ pyxCommentHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
|
|
}
|
|
|
|
static void
|
|
-pyxCdataBlockHandler(void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len)
|
|
+pyxCdataBlockHandler(void *ctx, const xmlChar *value, int len)
|
|
{
|
|
fprintf(stdout,"[");
|
|
SanitizeData(value, len);
|