| 1 |
https://github.com/liblouis/liblouisutdml/pull/120 |
| 2 |
|
| 3 |
commit 75f672fdfecbeba7f758ba09d3b82083c18f5fa2 |
| 4 |
Author: Samuel Thibault <[email protected]> |
| 5 |
Date: Wed Aug 20 09:56:27 2025 +0200 |
| 6 |
|
| 7 |
libxml_errors: drop ATTRIBUTE_UNUSED |
| 8 |
|
| 9 |
libxml before 2.14 used to define it, but it's not part of its API, so |
| 10 |
we shouldn't have been using it. |
| 11 |
|
| 12 |
Fixes #118 |
| 13 |
|
| 14 |
diff --git a/liblouisutdml/liblouisutdml.c b/liblouisutdml/liblouisutdml.c |
| 15 |
index de7d0e1..2fbd761 100644 |
| 16 |
--- a/liblouisutdml/liblouisutdml.c |
| 17 |
+++ b/liblouisutdml/liblouisutdml.c |
| 18 |
@@ -56,7 +56,7 @@ LBUAPI void EXPORT_CALL lbu_loadXMLCatalog(const char *filename) |
| 19 |
xmlLoadCatalog(filename); |
| 20 |
} |
| 21 |
void |
| 22 |
-libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) |
| 23 |
+libxml_errors (void *ctx, const char *msg, ...) |
| 24 |
{ |
| 25 |
va_list args; |
| 26 |
char buffer[MAXNAMELEN]; |
| 27 |
diff --git a/liblouisutdml/louisutdml.h b/liblouisutdml/louisutdml.h |
| 28 |
index 5c15950..5caf3db 100644 |
| 29 |
--- a/liblouisutdml/louisutdml.h |
| 30 |
+++ b/liblouisutdml/louisutdml.h |
| 31 |
@@ -370,7 +370,7 @@ int do_blankline (); |
| 32 |
int do_softreturn (); |
| 33 |
int do_righthandpage (); |
| 34 |
int do_pagenum (); |
| 35 |
-void libxml_errors (void *ctx ATTRIBUTE_UNUSED, const char *msg, ...); |
| 36 |
+void libxml_errors (void *ctx, const char *msg, ...); |
| 37 |
int do_configstring (xmlNode * node); |
| 38 |
StyleType *new_style (xmlChar * name); |
| 39 |
StyleType *lookup_style (xmlChar * name); |