Skip to content

Compiler warnings ("defined but not used") in "nimble/host/mesh/src/proxy_srv.c" #963

@afpineda

Description

@afpineda

Hi.

When compiling with all warnings ON, I get the following warning messages:

/home/runner/Arduino/libraries/NimBLE-Arduino/src/nimble/nimble/host/mesh/src/proxy_srv.c:637:13: warning: 'proxy_ccc_write' defined but not used [-Wunused-function]
  637 | static void proxy_ccc_write(uint16_t conn_handle)
      |             ^~~~~~~~~~~~~~~
/home/runner/Arduino/libraries/NimBLE-Arduino/src/nimble/nimble/host/mesh/src/proxy_srv.c:626:13: warning: 'subnet_evt' defined but not used [-Wunused-function]
  626 | static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt)
      |             ^~~~~~~~~~
/home/runner/Arduino/libraries/NimBLE-Arduino/src/nimble/nimble/host/mesh/src/proxy_srv.c:331:13: warning: 'proxy_send_beacons' defined but not used [-Wunused-function]
  331 | static void proxy_send_beacons(struct ble_npl_event *work)
      |             ^~~~~~~~~~~~~~~~~~

FQBN: esp32:esp32:esp32
h2zero/NimBLE-Arduino version: 2.3.0

This warning may be a symptom of something worse. Either those functions are certainly not called, either some preprocessor directives are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions