mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
include: Don't redefine ATTRIBUTE_UNUSED
This commit is contained in:
parent
7c3151903d
commit
b61a960bf6
@ -41,10 +41,12 @@
|
||||
* Attributes
|
||||
*/
|
||||
|
||||
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
|
||||
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define ATTRIBUTE_UNUSED
|
||||
#ifndef ATTRIBUTE_UNUSED
|
||||
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 207
|
||||
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define ATTRIBUTE_UNUSED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(__clang__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 403)
|
||||
|
Loading…
x
Reference in New Issue
Block a user