player/Thread, ...: assume [[fallthrough]] is supported

This commit is contained in:
Max Kellermann
2023-03-06 16:29:53 +01:00
parent 47b3577d6b
commit abdbaf605e
3 changed files with 2 additions and 7 deletions

View File

@@ -276,9 +276,8 @@ AlsaInputStream::Recover(int err)
if (err == -EAGAIN)
return 0;
/* fall-through to snd_pcm_prepare: */
#if CLANG_OR_GCC_VERSION(7,0)
[[fallthrough]];
#endif
case SND_PCM_STATE_OPEN:
case SND_PCM_STATE_SETUP:
case SND_PCM_STATE_XRUN: