player/Thread, ...: assume [[fallthrough]] is supported
This commit is contained in:
parent
47b3577d6b
commit
abdbaf605e
@ -276,9 +276,8 @@ AlsaInputStream::Recover(int err)
|
|||||||
if (err == -EAGAIN)
|
if (err == -EAGAIN)
|
||||||
return 0;
|
return 0;
|
||||||
/* fall-through to snd_pcm_prepare: */
|
/* fall-through to snd_pcm_prepare: */
|
||||||
#if CLANG_OR_GCC_VERSION(7,0)
|
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#endif
|
|
||||||
case SND_PCM_STATE_OPEN:
|
case SND_PCM_STATE_OPEN:
|
||||||
case SND_PCM_STATE_SETUP:
|
case SND_PCM_STATE_SETUP:
|
||||||
case SND_PCM_STATE_XRUN:
|
case SND_PCM_STATE_XRUN:
|
||||||
|
@ -908,9 +908,8 @@ AlsaOutput::Recover(int err) noexcept
|
|||||||
if (err == -EAGAIN)
|
if (err == -EAGAIN)
|
||||||
return 0;
|
return 0;
|
||||||
/* fall-through to snd_pcm_prepare: */
|
/* fall-through to snd_pcm_prepare: */
|
||||||
#if CLANG_OR_GCC_VERSION(7,0)
|
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#endif
|
|
||||||
case SND_PCM_STATE_OPEN:
|
case SND_PCM_STATE_OPEN:
|
||||||
case SND_PCM_STATE_SETUP:
|
case SND_PCM_STATE_SETUP:
|
||||||
case SND_PCM_STATE_XRUN:
|
case SND_PCM_STATE_XRUN:
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#include "CrossFade.hxx"
|
#include "CrossFade.hxx"
|
||||||
#include "pcm/MixRampGlue.hxx"
|
#include "pcm/MixRampGlue.hxx"
|
||||||
#include "tag/Tag.hxx"
|
#include "tag/Tag.hxx"
|
||||||
#include "util/Compiler.h"
|
|
||||||
#include "util/Domain.hxx"
|
#include "util/Domain.hxx"
|
||||||
#include "thread/Name.hxx"
|
#include "thread/Name.hxx"
|
||||||
#include "Log.hxx"
|
#include "Log.hxx"
|
||||||
@ -1279,9 +1278,7 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
#if CLANG_OR_GCC_VERSION(7,0)
|
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
#endif
|
|
||||||
|
|
||||||
case PlayerCommand::PAUSE:
|
case PlayerCommand::PAUSE:
|
||||||
next_song.reset();
|
next_song.reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user