pbab, hfp: fix unused warnings

This commit is contained in:
Milanka Ringwald 2020-04-21 11:25:46 +02:00
parent c3cf4b89d4
commit 5575558ed0
2 changed files with 6 additions and 1 deletions

View File

@ -613,8 +613,10 @@ static int hfp_handle_failed_sco_connection(uint8_t status){
void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role){
UNUSED(packet_type);
UNUSED(channel); // ok: no channel
UNUSED(size);
bd_addr_t event_addr;
hci_con_handle_t handle;
hfp_connection_t * hfp_connection = NULL;
@ -743,7 +745,9 @@ void hfp_handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet
}
void hfp_handle_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size, hfp_role_t local_role){
UNUSED(packet_type);
UNUSED(channel); // ok: no channel
UNUSED(size);
bd_addr_t event_addr;
uint16_t rfcomm_cid;

View File

@ -643,6 +643,7 @@ static void pbap_client_process_vcard_listing(uint8_t *packet, uint16_t size){
}
}
static void pbap_packet_handler_hci(uint8_t *packet, uint16_t size){
UNUSED(size);
uint8_t status;
switch (hci_event_packet_get_type(packet)) {
case HCI_EVENT_GOEP_META: