Skip to content

Commit

Permalink
added default case
Browse files Browse the repository at this point in the history
to avoid compiler warnings of unhandled (library-private) enum values

This avoids the compiler warning "enumeration value ‘SND_PCM_STATE_PRIVATE1’ not handled
in switch [-Wswitch]"

This library-private PCM state is used internally only (see
https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga61ac499cb3701ce536d4d83725908860).
  • Loading branch information
jolange committed Aug 3, 2018
1 parent 05515f0 commit 25072d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apulse-stream.c
Expand Up @@ -147,6 +147,9 @@ data_available_for_stream(pa_mainloop_api *a, pa_io_event *ioe, int fd,
"SND_PCM_STATE_DISCONNECTED state. Giving up.",
s->name ? s->name : "", s->c->name ? s->c->name : "");
break;
default:
// avoid compiler warnings of unhandled (library-private) enum values
break;
}

#if HAVE_SND_PCM_AVAIL
Expand Down

0 comments on commit 25072d4

Please sign in to comment.