mesh: Fix GCC 10.0 warnings 16/234216/1
authorBrian Gix <brian.gix@intel.com>
Fri, 17 Apr 2020 18:57:21 +0000 (11:57 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Fri, 22 May 2020 04:23:43 +0000 (09:53 +0530)
Change-Id: I4cb7bdc28d642357131dacff6457cd0aa752ecac
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/crypto.c
mesh/mesh-config-json.c

index b14c9ef..617db84 100644 (file)
@@ -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)];
 
index ad1a355..29c532e 100644 (file)
@@ -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)