diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index 8601bf1..aefcff8 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
len = enc_notification(al_adapter->hnd_value[type],
nd->value, nd->len, pdu, len);
break;
+ case NOTIFY_SIZE:
default:
DBG("Unknown type, could not send notification");
goto end;
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 6b72f99..75503f3 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
}
}
break;
+ case AVDTP_STATE_CONFIGURED:
+ case AVDTP_STATE_CLOSING:
+ case AVDTP_STATE_ABORTING:
default:
error("SEP in bad state for requesting a new stream");
goto failed;
cb_data->source_id = g_idle_add(finalize_resume,
setup);
break;
+ case AVDTP_STATE_CLOSING:
+ case AVDTP_STATE_ABORTING:
default:
error("SEP in bad state for resume");
goto failed;
}
sep->suspending = TRUE;
break;
+ case AVDTP_STATE_CONFIGURED:
+ case AVDTP_STATE_CLOSING:
+ case AVDTP_STATE_ABORTING:
default:
error("SEP in bad state for suspend");
goto failed;
if (avdtp_suspend(session, sep->stream) == 0)
sep->suspending = TRUE;
break;
+ case AVDTP_STATE_IDLE:
+ case AVDTP_STATE_CONFIGURED:
+ case AVDTP_STATE_CLOSING:
+ case AVDTP_STATE_ABORTING:
default:
break;
}
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 5c3c4f9..11de6ee 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
session_init_browsing(session);
break;
+ case AVCTP_STATE_BROWSING_CONNECTING:
default:
return;
}
diff --git a/profiles/audio/control.c b/profiles/audio/control.c
index ab94a57..3985362 100644
--- a/profiles/audio/control.c
+++ b/profiles/audio/control.c
g_dbus_emit_property_changed(conn, path,
AUDIO_CONTROL_INTERFACE, "Connected");
break;
+ case AVCTP_STATE_BROWSING_CONNECTING:
+ case AVCTP_STATE_BROWSING_CONNECTED:
default:
return;
}
diff --git a/profiles/health/mcap.c b/profiles/health/mcap.c
index a20a7ad..cc47a1e 100644
--- a/profiles/health/mcap.c
+++ b/profiles/health/mcap.c
c->mdl_reconn_req = va_arg(args,
mcap_remote_mdl_reconn_req_cb);
break;
+ case MCAP_MDL_CB_INVALID:
default:
g_set_error(err, MCAP_ERROR, MCAP_ERROR_INVALID_ARGS,
"Unknown option %d", cb);