summaryrefslogtreecommitdiff
path: root/src
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
parentc44d1566fa40ebf2a1560a27aef9e4536f86b47e (diff)
{input,output}/alsa: work around -Wswitch due to SND_PCM_STATE_PRIVATE1
Diffstat (limited to 'src')
-rw-r--r--src/input/plugins/AlsaInputPlugin.cxx6
-rw-r--r--src/output/plugins/AlsaOutputPlugin.cxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx
index 4cbf1644c..d38fcc5f8 100644
--- a/src/input/plugins/AlsaInputPlugin.cxx
+++ b/src/input/plugins/AlsaInputPlugin.cxx
@@ -270,6 +270,12 @@ AlsaInputStream::Recover(int err)
/* this is no error, so just keep running */
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;
}
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;