Skip to content

Commit

Permalink
nimble/host: ble_cs: Fix 'defined but not used' warning
Browse files Browse the repository at this point in the history
ble_cs.c contains initial implementation that caused warnings when
running command:
newt test @apache-mynewt-nimble/nimble
  • Loading branch information
mkasenberg committed Oct 7, 2024
1 parent 7d17bd0 commit c5db1a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nimble/host/src/ble_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit c5db1a7

Please sign in to comment.