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

16
xmlIO.c
View File

@ -118,18 +118,6 @@ xmlOutputCallback xmlOutputCallbackTable[MAX_OUTPUT_CALLBACK];
int xmlOutputCallbackNr = 0;
int xmlOutputCallbackInitialized = 0;
/************************************************************************
* *
* When running GCC in vaacum cleaner mode *
* *
************************************************************************/
#ifdef __GNUC__
#define UNUSED __attribute__((__unused__))
#else
#define UNUSED
#endif
/************************************************************************
* *
* Standard I/O for file accesses *
@ -226,7 +214,7 @@ xmlFdClose (void * context) {
* Returns 1 if matches, 0 otherwise
*/
static int
xmlFileMatch (const char *filename UNUSED) {
xmlFileMatch (const char *filename ATTRIBUTE_UNUSED) {
return(1);
}
@ -369,7 +357,7 @@ xmlFileFlush (void * context) {
* Returns 1 if matches, 0 otherwise
*/
static int
xmlGzfileMatch (const char *filename UNUSED) {
xmlGzfileMatch (const char *filename ATTRIBUTE_UNUSED) {
return(1);
}