mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Silence clang's -Wunknown-attribute
Clang doesn't have perfect feature compatibility with GCC, unfortunately. https://bugzilla.gnome.org/show_bug.cgi?id=747870
This commit is contained in:
@@ -435,7 +435,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LIBXML_ATTR_ALLOC_SIZE
|
#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)))
|
# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
|
||||||
# else
|
# else
|
||||||
# define LIBXML_ATTR_ALLOC_SIZE(x)
|
# define LIBXML_ATTR_ALLOC_SIZE(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user