forked from enlightenment/efl
eina: enable fallthrough warning suppression only on GCC 7 and above.
This commit is contained in:
parent
96347d1ee2
commit
1aa2b6de14
|
@ -197,7 +197,11 @@
|
|||
# define EINA_LIKELY(exp) __builtin_expect((exp), 1)
|
||||
# define EINA_SENTINEL __attribute__((__sentinel__))
|
||||
# ifndef __clang__
|
||||
# if __GNUC__ >= 7
|
||||
# define EINA_FALLTHROUGH __attribute__ ((fallthrough));
|
||||
# else
|
||||
# define EINA_FALLTHROUGH
|
||||
# endif
|
||||
# define EINA_PREFETCH(arg) (arg ? __builtin_prefetch(arg) : (void) arg)
|
||||
# define EINA_PREFETCH_WRITE(arg) (arg ? __builtin_prefetch(arg, 1) : (void) arg)
|
||||
# define EINA_PREFETCH_NOCACHE(arg) (arg ? __builtin_prefetch(arg, 0, 0) : (void) arg)
|
||||
|
|
Loading…
Reference in New Issue