]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix misc compile warnings
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 15:11:39 +0000 (16:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2009 15:11:39 +0000 (16:11 +0100)
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 <tiwai@suse.de>
src/pcm/pcm_plug.c

index 09028c9869dcf22cc3abd9f423f84cc0f4097669..967cf46c559bcf70cbae83eb6fc7075c6b280355 100644 (file)
@@ -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;
 }