diff options
author | Max Kellermann <max@musicpd.org> | 2018-05-03 11:59:18 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-05-03 11:59:18 +0200 |
commit | ac61fd1d78c3d57d8d72446a8b41cfb0c9c1906e (patch) | |
tree | fcccb849ec15e6769d4ffa10b7447018cda6f6c3 /src/output/plugins | |
parent | c44d1566fa40ebf2a1560a27aef9e4536f86b47e (diff) |
{input,output}/alsa: work around -Wswitch due to SND_PCM_STATE_PRIVATE1
Diffstat (limited to 'src/output/plugins')
-rw-r--r-- | src/output/plugins/AlsaOutputPlugin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index cb243c406..87b2ef7e5 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -846,6 +846,12 @@ AlsaOutput::Recover(int err) case SND_PCM_STATE_DRAINING: err = 0; break; + + default: + /* this default case is just here to work around + -Wswitch due to SND_PCM_STATE_PRIVATE1 (libasound + 1.1.6) */ + break; } return err; |