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;