hash: fix the initialization warning error on gcc-10
Type: fix
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Ic7d99154def71cd06e8faa64180912e5b844424e
diff --git a/src/vnet/hash/crc32_5tuple.c b/src/vnet/hash/crc32_5tuple.c
index 69ee63a..29d92a9 100644
--- a/src/vnet/hash/crc32_5tuple.c
+++ b/src/vnet/hash/crc32_5tuple.c
@@ -80,7 +80,7 @@
while (n_left_from >= 8)
{
- crc32c_5tuple_key_t key[4];
+ crc32c_5tuple_key_t key[4] = {};
clib_prefetch_load (p[4]);
clib_prefetch_load (p[5]);
@@ -104,7 +104,7 @@
while (n_left_from > 0)
{
- crc32c_5tuple_key_t key;
+ crc32c_5tuple_key_t key = {};
compute_ip_key (p[0], &key);
@@ -158,7 +158,7 @@
while (n_left_from >= 8)
{
- crc32c_5tuple_key_t key[4];
+ crc32c_5tuple_key_t key[4] = {};
clib_prefetch_load (p[4]);
clib_prefetch_load (p[5]);
@@ -182,7 +182,7 @@
while (n_left_from > 0)
{
- crc32c_5tuple_key_t key;
+ crc32c_5tuple_key_t key = {};
compute_ethernet_key (p[0], &key);