mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
|
||||
/* clang's fallthrough annotations are only available starting in C++11. */
|
||||
# define SPA_FALLTHROUGH [[clang::fallthrough]];
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 7
|
||||
#define SPA_FALLTHROUGH __attribute__ ((fallthrough));
|
||||
#elif __GNUC__ >= 7 || __clang_major__ >= 10
|
||||
# define SPA_FALLTHROUGH __attribute__ ((fallthrough));
|
||||
#else
|
||||
# define SPA_FALLTHROUGH /* FALLTHROUGH */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue