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

This commit is contained in:
Max Kellermann 2018-05-03 11:59:18 +02:00
parent c44d1566fa
commit ac61fd1d78
2 changed files with 12 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;