- HTMLparser.c HTMLtree.c SAX.c debugXML.c error.c parserInternals.c
testHTML.c testSAX.c tree.c valid.c xmlIO.c xmlmemory.c
xmlversion.h.in xpointer.c: of course the way I defined
UNUSED breaks on old gcc version. Try to be smart and
also define it directly in xmlversion.h
- configure.in: removed -ansi flag from the pedantic set
Daniel
diff --git a/error.c b/error.c
index cf1c1a5..a0124d4 100644
--- a/error.c
+++ b/error.c
@@ -18,11 +18,6 @@
#include <libxml/xmlerror.h>
#include <libxml/xmlmemory.h>
-#ifdef __GNUC__
-#define UNUSED __attribute__((__unused__))
-#else
-#define UNUSED
-#endif
/************************************************************************
* *
* Handling of out of context errors *
@@ -38,7 +33,7 @@
* Default handler for out of context error messages.
*/
static void
-xmlGenericErrorDefaultFunc(void *ctx UNUSED, const char *msg, ...) {
+xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
va_list args;
if (xmlGenericErrorContext == NULL)