summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2020-04-17 11:57:21 -0700
committerAbhay Agarwal <ay.agarwal@samsung.com>2020-05-22 09:53:43 +0530
commitf6135de1447e9957cb5c3667e5ffd93a5c901ab8 (patch)
tree828fc3c1100f0077dd28181941857dd858d7cd7c
parenta8e982f03cb9a46b3152f7fbb44921ce8c0ac8ec (diff)
downloadbluez-f6135de1447e9957cb5c3667e5ffd93a5c901ab8.tar.gz
bluez-f6135de1447e9957cb5c3667e5ffd93a5c901ab8.tar.bz2
bluez-f6135de1447e9957cb5c3667e5ffd93a5c901ab8.zip
mesh: Fix GCC 10.0 warnings
Change-Id: I4cb7bdc28d642357131dacff6457cd0aa752ecac Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
-rw-r--r--mesh/crypto.c2
-rw-r--r--mesh/mesh-config-json.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mesh/crypto.c b/mesh/crypto.c
index b14c9efd..617db844 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 ad1a355e..29c532e5 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)