diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx index d09126d14..a8ca6049a 100644 --- a/src/input/plugins/AlsaInputPlugin.cxx +++ b/src/input/plugins/AlsaInputPlugin.cxx @@ -289,7 +289,7 @@ AlsaInputStream::Recover(int err) if (err == -EAGAIN) return 0; /* fall-through to snd_pcm_prepare: */ -#if GCC_CHECK_VERSION(7,0) +#if CLANG_OR_GCC_VERSION(7,0) [[fallthrough]]; #endif case SND_PCM_STATE_OPEN: diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 1aefbbe7d..b41b405c5 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -763,7 +763,7 @@ AlsaOutput::Recover(int err) noexcept if (err == -EAGAIN) return 0; /* fall-through to snd_pcm_prepare: */ -#if GCC_CHECK_VERSION(7,0) +#if CLANG_OR_GCC_VERSION(7,0) [[fallthrough]]; #endif case SND_PCM_STATE_OPEN: diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 39f48b7b8..d790fbb3f 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -1176,7 +1176,9 @@ try { } /* fall through */ - gcc_fallthrough; +#if CLANG_OR_GCC_VERSION(7,0) + [[fallthrough]]; +#endif case PlayerCommand::PAUSE: next_song.reset();