Commit ac61fd1d authored by Max Kellermann's avatar Max Kellermann

{input,output}/alsa: work around -Wswitch due to SND_PCM_STATE_PRIVATE1

parent c44d1566
...@@ -270,6 +270,12 @@ AlsaInputStream::Recover(int err) ...@@ -270,6 +270,12 @@ AlsaInputStream::Recover(int err)
/* this is no error, so just keep running */ /* this is no error, so just keep running */
err = 0; err = 0;
break; break;
default:
/* this default case is just here to work around
-Wswitch due to SND_PCM_STATE_PRIVATE1 (libasound
1.1.6) */
break;
} }
......
...@@ -846,6 +846,12 @@ AlsaOutput::Recover(int err) ...@@ -846,6 +846,12 @@ AlsaOutput::Recover(int err)
case SND_PCM_STATE_DRAINING: case SND_PCM_STATE_DRAINING:
err = 0; err = 0;
break; 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; return err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment