mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
sm: fix unused warnings
This commit is contained in:
parent
3912775411
commit
2e7060d6a8
@ -2408,8 +2408,6 @@ static void sm_run_activate_connection(void){
|
||||
sm_connection_t * sm_connection = &hci_connection->sm_connection;
|
||||
// - if no connection locked and we're ready/waiting for setup context, fetch it and start
|
||||
bool done = true;
|
||||
int err;
|
||||
UNUSED(err);
|
||||
|
||||
#ifdef ENABLE_LE_SECURE_CONNECTIONS
|
||||
// assert ec key is ready
|
||||
@ -2870,7 +2868,8 @@ static void sm_run(void){
|
||||
}
|
||||
#endif
|
||||
|
||||
int key_distribution_flags;
|
||||
// initialize to avoid 'maybe used uninitialized' error
|
||||
int key_distribution_flags = 0;
|
||||
UNUSED(key_distribution_flags);
|
||||
#ifdef ENABLE_LE_PERIPHERAL
|
||||
int err;
|
||||
|
Loading…
x
Reference in New Issue
Block a user