1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- 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
This commit is contained in:
Daniel Veillard
2001-03-26 16:28:29 +00:00
parent a47fb3d9f7
commit c86a4fae4a
17 changed files with 142 additions and 256 deletions

View File

@ -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)