Skip to content

Commit 2a7ef5a

Browse files
committed
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
1 parent ec2959e commit 2a7ef5a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nimble/host/src/ble_cs.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ ble_hs_hci_evt_le_cs_test_end_complete(uint8_t subevent, const void *data,
689689
int
690690
ble_cs_initiator_procedure_start(const struct ble_cs_initiator_procedure_start_params *params)
691691
{
692-
struct ble_hci_le_cs_rd_loc_supp_cap_rp rsp;
693692
struct ble_cs_rd_rem_supp_cap_cp cmd;
694693
int rc;
695694

@@ -701,6 +700,12 @@ ble_cs_initiator_procedure_start(const struct ble_cs_initiator_procedure_start_p
701700
* 5. Start the CS Security Start procedure
702701
*/
703702

703+
(void) ble_cs_set_chan_class;
704+
(void) ble_cs_remove_config;
705+
(void) ble_cs_wr_cached_rem_fae;
706+
(void) ble_cs_wr_cached_rem_supp_cap;
707+
(void) ble_cs_rd_loc_supp_cap;
708+
704709
cs_state.cb = params->cb;
705710
cs_state.cb_arg = params->cb_arg;
706711

0 commit comments

Comments
 (0)