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:
Szymon Janc
2017-09-29 13:49:26 +02:00
parent 1e52e8d729
commit 51792adbed
+1 -1
View File
@@ -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 },
};