diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2015-04-14 13:51:01 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2015-04-26 16:00:05 -0500 |
commit | b02a167af3d2a47c155bce123820cbb5fa19dc9c (patch) | |
tree | 7a71015f91d2eb1ed5b06b931716a0211fd52078 /include | |
parent | 22b0415a8945a5e166457c6f8e3785f89339c533 (diff) | |
download | android_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
Diffstat (limited to 'include')
-rw-r--r-- | include/libxml/xmlversion.h.in | 2 |
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) |