mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
spa: enable fallthrough attribute on recent clang
This commit is contained in:
parent
3ba73bde48
commit
a1259a75be
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,8 @@ extern "C" {
|
||||||
#if defined(__clang__) && __cplusplus >= 201103L
|
#if defined(__clang__) && __cplusplus >= 201103L
|
||||||
/* clang's fallthrough annotations are only available starting in C++11. */
|
/* clang's fallthrough annotations are only available starting in C++11. */
|
||||||
# define SPA_FALLTHROUGH [[clang::fallthrough]];
|
# define SPA_FALLTHROUGH [[clang::fallthrough]];
|
||||||
#elif defined(__GNUC__) && __GNUC__ >= 7
|
#elif __GNUC__ >= 7 || __clang_major__ >= 10
|
||||||
#define SPA_FALLTHROUGH __attribute__ ((fallthrough));
|
# define SPA_FALLTHROUGH __attribute__ ((fallthrough));
|
||||||
#else
|
#else
|
||||||
# define SPA_FALLTHROUGH /* FALLTHROUGH */
|
# define SPA_FALLTHROUGH /* FALLTHROUGH */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue