From 98966208fe327f4e78e0984b1233e9f774e6b70e Mon Sep 17 00:00:00 2001 From: Magdalena Kasenberg Date: Thu, 14 Mar 2024 10:35:31 +0100 Subject: [PATCH] nimble/host: ble_cs: Fix 'defined but not used' warning ble_cs.c contains initial implementation that caused warnings when running command: newt test @apache-mynewt-nimble/nimble --- nimble/host/src/ble_cs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nimble/host/src/ble_cs.c b/nimble/host/src/ble_cs.c index cef622206b..2ae985e225 100644 --- a/nimble/host/src/ble_cs.c +++ b/nimble/host/src/ble_cs.c @@ -689,7 +689,6 @@ ble_hs_hci_evt_le_cs_test_end_complete(uint8_t subevent, const void *data, int ble_cs_initiator_procedure_start(const struct ble_cs_initiator_procedure_start_params *params) { - struct ble_hci_le_cs_rd_loc_supp_cap_rp rsp; struct ble_cs_rd_rem_supp_cap_cp cmd; int rc; @@ -701,6 +700,12 @@ ble_cs_initiator_procedure_start(const struct ble_cs_initiator_procedure_start_p * 5. Start the CS Security Start procedure */ + (void) ble_cs_set_chan_class; + (void) ble_cs_remove_config; + (void) ble_cs_wr_cached_rem_fae; + (void) ble_cs_wr_cached_rem_supp_cap; + (void) ble_cs_rd_loc_supp_cap; + cs_state.cb = params->cb; cs_state.cb_arg = params->cb_arg;