From: Takashi Iwai Date: Mon, 2 Feb 2009 15:11:39 +0000 (+0100) Subject: Fix misc compile warnings X-Git-Tag: v1.0.20~9 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=548dd9be908257a03e550c1bc7a8ddd582ff193f;p=alsa-lib.git Fix misc compile warnings Shut up misc compile warnings from gcc: pcm_plug.c: In function ‘snd_pcm_plug_change_mmap’: pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_INTERLEAVED’ not handled in switch pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_NONINTERLEAVED’ not handled in switch pcm_plug.c:608: warning: enumeration value ‘SND_PCM_ACCESS_MMAP_COMPLEX’ not handled in switch Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_plug.c b/src/pcm/pcm_plug.c index 09028c98..967cf46c 100644 --- a/src/pcm/pcm_plug.c +++ b/src/pcm/pcm_plug.c @@ -612,6 +612,8 @@ static int snd_pcm_plug_change_mmap(snd_pcm_t *pcm, snd_pcm_t **new, case SND_PCM_ACCESS_RW_NONINTERLEAVED: slv->access = SND_PCM_ACCESS_MMAP_NONINTERLEAVED; break; + default: + break; } return 1; }