Skip to contentSkip to conversation

mesh: Fix GCC 10.0 warnings

PATCH New Brian Gix 1 participant 1 message Apr 17, 2020 Bluetooth drivers

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 mesh: Fix GCC 10.0 warnings

---
 mesh/crypto.c           | 2 +-
 mesh/mesh-config-json.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
mesh/crypto.c +1 -1
index df597bb3f..99536594b 100644
@@ -1038,7 +1038,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)];
 
mesh/mesh-config-json.c +1 -1
index 97267b6c3..7362112f2 100644
@@ -1980,7 +1980,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)
Signature · 1 line
2.21.1