From c123d999de083b222ab86e48b84a6f29dc103082 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 9 Jul 2020 22:47:43 +0200 Subject: [PATCH] fix warnings --- src/ble/sm.c | 2 +- src/hci.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ble/sm.c b/src/ble/sm.c index af2b1c720..544978a37 100644 --- a/src/ble/sm.c +++ b/src/ble/sm.c @@ -191,9 +191,9 @@ static uint8_t sm_io_capabilities = IO_CAPABILITY_NO_INPUT_NO_OUTPUT; static uint8_t sm_slave_request_security; static uint32_t sm_fixed_passkey_in_display_role; static uint8_t sm_reconstruct_ltk_without_le_device_db_entry; -static bool sm_sc_only_mode; #ifdef ENABLE_LE_SECURE_CONNECTIONS +static bool sm_sc_only_mode; static uint8_t sm_sc_oob_random[16]; static void (*sm_sc_oob_callback)(const uint8_t * confirm_value, const uint8_t * random_value); static sm_sc_oob_state_t sm_sc_oob_state; diff --git a/src/hci.c b/src/hci.c index 0e65853f7..370c2ec57 100644 --- a/src/hci.c +++ b/src/hci.c @@ -4190,6 +4190,8 @@ int hci_send_cmd_packet(uint8_t *packet, int size){ #ifdef ENABLE_CLASSIC bd_addr_t addr; hci_connection_t * conn; +#endif +#ifdef ENABLE_LE_CENTRAL uint8_t initiator_filter_policy; #endif