summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-11-04 23:57:30 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-11-04 23:57:30 +0000
commit30ce0dd0f8badcfd7f016eca0cc6e084d5b15c8e (patch)
treed07a36dac77eda479f4dcb063fdeff47573b693c
parent6bf4d6fd3e4a842d8b75880f6ca83f75925f81bf (diff)
downloadlibxml2-30ce0dd0f8badcfd7f016eca0cc6e084d5b15c8e.tar.gz
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))
-rw-r--r--ChangeLog6
-rw-r--r--include/libxml/xmlversion.h.in2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 34c2804b..5ba34dd1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/include/libxml/xmlversion.h.in b/include/libxml/xmlversion.h.in
index ebd43d1c..91c6107e 100644
--- a/include/libxml/xmlversion.h.in
+++ b/include/libxml/xmlversion.h.in
@@ -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