Skip to content

ble_gap_rd_rem_ver_tx not used when some roles are not compiled. #1173

Description

@xgnata

Hi,

I'm compiling with
-D CONFIG_BT_NIMBLE_ROLE_CENTRAL=0
-D CONFIG_BT_NIMBLE_ROLE_PERIPHERAL=0
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER=0
-D CONFIG_BT_NIMBLE_LOG_LEVEL=5
-D CONFIG_NIMBLE_CPP_LOG_LEVEL=0
to reduce the binary size as much as possible.

I get this warning :
Compiling .pio/build/stable/lib22e/NimBLE-Arduino/nimble/nimble/host/src/ble_hs.c.o
.pio/libdeps/stable/NimBLE-Arduino/src/nimble/nimble/host/src/ble_gap.c:2582:1: warning: 'ble_gap_rd_rem_ver_tx' defined but not used [-Wunused-function]
2582 | ble_gap_rd_rem_ver_tx(uint16_t handle)

The warning is harmless as the scanning feature works. However, a clean compilation would be better?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions