fix unused params warnings

This commit is contained in:
Matthias Ringwald 2016-12-22 22:44:50 +01:00
parent 9ec2630ce4
commit d066298299
5 changed files with 16 additions and 1 deletions

View File

@ -83,6 +83,7 @@ void le_device_db_init(void){
}
void le_device_db_set_local_bd_addr(bd_addr_t bd_addr){
(void)bd_addr;
}
// @returns number of device in db

View File

@ -3688,6 +3688,10 @@ void sm_use_fixed_ec_keypair(uint8_t * qx, uint8_t * qy, uint8_t * d){
memcpy(ec_d, d, 32);
sm_have_ec_keypair = 1;
ec_key_generation_state = EC_KEY_GENERATION_DONE;
#else
UNUSED(qx);
UNUSED(qy);
UNUSED(d);
#endif
}

View File

@ -214,6 +214,9 @@ void log_info_hexdump(const void *data, int size){
buffer[j] = 0;
log_info("%s", buffer);
}
#else
UNUSED(data);
UNUSED(size);
#endif
}
@ -229,6 +232,9 @@ void log_info_key(const char * name, sm_key_t key){
}
buffer[j] = 0;
log_info("%-6s %s", name, buffer);
#else
UNUSED(name);
UNUSED(key);
#endif
}

View File

@ -115,6 +115,9 @@ void hci_dump_open(const char *filename, hci_dump_format_t format){
}
#else
UNUSED(filename);
UNUSED(format);
dump_file = 1;
#endif
}

View File

@ -1130,8 +1130,8 @@ static void l2cap_hci_event_handler(uint8_t packet_type, uint16_t cid, uint8_t *
// handle disconnection complete events
case HCI_EVENT_DISCONNECTION_COMPLETE:
// send l2cap disconnect events for all channels on this handle and free them
handle = little_endian_read_16(packet, 3);
#ifdef ENABLE_CLASSIC
handle = little_endian_read_16(packet, 3);
btstack_linked_list_iterator_init(&it, &l2cap_channels);
while (btstack_linked_list_iterator_has_next(&it)){
l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it);
@ -1143,6 +1143,7 @@ static void l2cap_hci_event_handler(uint8_t packet_type, uint16_t cid, uint8_t *
}
#endif
#ifdef ENABLE_LE_DATA_CHANNELS
handle = little_endian_read_16(packet, 3);
btstack_linked_list_iterator_init(&it, &l2cap_le_channels);
while (btstack_linked_list_iterator_has_next(&it)){
l2cap_channel_t * channel = (l2cap_channel_t *) btstack_linked_list_iterator_next(&it);