mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-12 17:07:22 +00:00
mesh: Fix compilation with GCC 7.1
Fix following error emitted by GCC 7.1:
Error: repos/apache-mynewt-core/apps/blemesh/src/main.c:83:38: error:
duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct bt_mesh_model_op const gen_onoff_op[] = {
^~~~~
repos/apache-mynewt-core/apps/blemesh/src/main.c:132:38: error:
duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
static const struct bt_mesh_model_op const gen_level_op[] = {
Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/access.c:32:3: error:
duplicate 'const' declaration specifier [-Werror=duplicate-decl-specifier]
} const model_init[] = {
^~~~~
X-Original-Commit: 97fa829ed62ca4fbb39e8ed83805386cd0ae6083
This commit is contained in:
@@ -29,7 +29,7 @@ static u16_t dev_primary_addr;
|
||||
static const struct {
|
||||
const u16_t id;
|
||||
int (*const init)(struct bt_mesh_model *model, bool primary);
|
||||
} const model_init[] = {
|
||||
} model_init[] = {
|
||||
{ BT_MESH_MODEL_ID_CFG_SRV, bt_mesh_conf_init },
|
||||
{ BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_init },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user