On Fri, 2013-07-12 at 15:07 -0300, jprvita at gmail.com wrote: > +/* Run from main thread */ > +static const char *pa_bluetooth_profile_to_string(enum profile profile) { > + switch(profile) { > + case PROFILE_A2DP_SINK: > + return "a2dp_sink"; > + case PROFILE_A2DP_SOURCE: > + return "a2dp_source"; > + case PROFILE_OFF: > + default: Having a default section here prevents useful compiler warnings. -- Tanu