ancs_client, att_server, pbab_client: review UNUSED-size

This commit is contained in:
Matthias Ringwald 2017-09-20 10:47:28 +02:00
parent 1ac26e06cb
commit 7dad9ff837
3 changed files with 9 additions and 7 deletions

View File

@ -183,9 +183,9 @@ static void ancs_chunk_parser_handle_byte(uint8_t data){
static void handle_hci_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
UNUSED(packet_type);
UNUSED(channel);
UNUSED(size);
UNUSED(packet_type); // ok: only hci events
UNUSED(channel); // ok: there is no channel
UNUSED(size); // ok: fixed format events read from HCI buffer
int connection_encrypted;

View File

@ -138,8 +138,8 @@ static void att_handle_value_indication_timeout(btstack_timer_source_t *ts){
static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
UNUSED(channel);
UNUSED(size);
UNUSED(channel); // ok: there is no channel
UNUSED(size); // ok: handling own l2cap events
att_server_t * att_server;
hci_con_handle_t con_handle;

View File

@ -222,8 +222,10 @@ static void pbap_handle_can_send_now(void){
}
static void pbap_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){
UNUSED(channel);
UNUSED(size);
UNUSED(channel); // ok: there is no channel
UNUSED(size); // ok: handling own geop events
obex_iterator_t it;
uint8_t status;
switch (packet_type){