From f6135de1447e9957cb5c3667e5ffd93a5c901ab8 Mon Sep 17 00:00:00 2001 From: Brian Gix Date: Fri, 17 Apr 2020 11:57:21 -0700 Subject: [PATCH] mesh: Fix GCC 10.0 warnings Change-Id: I4cb7bdc28d642357131dacff6457cd0aa752ecac Signed-off-by: Abhay Agarwal --- mesh/crypto.c | 2 +- mesh/mesh-config-json.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh/crypto.c b/mesh/crypto.c index b14c9ef..617db84 100644 --- a/mesh/crypto.c +++ b/mesh/crypto.c @@ -1037,7 +1037,7 @@ bool mesh_crypto_check_avail() uint8_t data[20]; uint8_t mic[8]; } crypto; - uint8_t bytes[0]; + uint8_t bytes[73]; } u; uint8_t out_msg[sizeof(u.crypto.data) + sizeof(u.crypto.mic)]; diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c index ad1a355..29c532e 100644 --- a/mesh/mesh-config-json.c +++ b/mesh/mesh-config-json.c @@ -1981,7 +1981,7 @@ bool mesh_config_model_sub_del_all(struct mesh_config *cfg, uint16_t addr, bool mesh_config_write_seq_number(struct mesh_config *cfg, uint32_t seq, bool cache) { - int value; + int value = 0; uint32_t cached = 0; if (!cfg) -- 2.7.4