changed macro ATTRIBUTE_UNUSED for gcc so that, if undefined, it's defined

* include/libxml/xmlversion.h.in: changed macro ATTRIBUTE_UNUSED
  for gcc so that, if undefined, it's defined as
  __attribute__((unused))
This commit is contained in:
William M. Brack 2003-11-04 23:57:30 +00:00
parent 6bf4d6fd3e
commit 30ce0dd0f8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue Nov 4 15:52:28 PST 2003 William Brack <wbrack@mmm.com.hk>
* include/libxml/xmlversion.h.in: changed macro ATTRIBUTE_UNUSED
for gcc so that, if undefined, it's defined as
__attribute__((unused))
Tue Nov 4 15:28:07 PST 2003 William Brack <wbrack@mmm.com.hk>
* python/generator.py: small enhancement to assure ATTRIBUTE_UNUSED

View File

@ -318,7 +318,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
#include <ansidecl.h>
#endif
#ifndef ATTRIBUTE_UNUSED
#define ATTRIBUTE_UNUSED
#define ATTRIBUTE_UNUSED __attribute__((unused))
#endif
#else
#define ATTRIBUTE_UNUSED