aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2015-04-14 13:51:01 -0500
committerMichael Catanzaro <mcatanzaro@gnome.org>2015-04-26 16:00:05 -0500
commitb02a167af3d2a47c155bce123820cbb5fa19dc9c (patch)
tree7a71015f91d2eb1ed5b06b931716a0211fd52078
parent22b0415a8945a5e166457c6f8e3785f89339c533 (diff)
downloadandroid_external_libxml2-b02a167af3d2a47c155bce123820cbb5fa19dc9c.tar.gz
android_external_libxml2-b02a167af3d2a47c155bce123820cbb5fa19dc9c.tar.bz2
android_external_libxml2-b02a167af3d2a47c155bce123820cbb5fa19dc9c.zip
Silence clang's -Wunknown-attribute
Clang doesn't have perfect feature compatibility with GCC, unfortunately. https://bugzilla.gnome.org/show_bug.cgi?id=747870
-rw-r--r--include/libxml/xmlversion.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libxml/xmlversion.h.in b/include/libxml/xmlversion.h.in
index 00a836fb..b173be9e 100644
--- a/include/libxml/xmlversion.h.in
+++ b/include/libxml/xmlversion.h.in
@@ -435,7 +435,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*/
#ifndef LIBXML_ATTR_ALLOC_SIZE
-# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
+# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
# else
# define LIBXML_ATTR_ALLOC_SIZE(x)