diff --git a/src/classic/hfp.c b/src/classic/hfp.c index c72f4575d..a83cd502b 100644 --- a/src/classic/hfp.c +++ b/src/classic/hfp.c @@ -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; diff --git a/src/classic/pbap_client.c b/src/classic/pbap_client.c index 18459ff33..810c83a70 100644 --- a/src/classic/pbap_client.c +++ b/src/classic/pbap_client.c @@ -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: