summaryrefslogtreecommitdiff
path: root/src/output/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-05-03 11:59:18 +0200
committerMax Kellermann <max@musicpd.org>2018-05-03 11:59:18 +0200
commitac61fd1d78c3d57d8d72446a8b41cfb0c9c1906e (patch)
treefcccb849ec15e6769d4ffa10b7447018cda6f6c3 /src/output/plugins
parentc44d1566fa40ebf2a1560a27aef9e4536f86b47e (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.cxx6
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;