aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2017-06-05 17:59:24 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2017-06-05 19:58:18 +0000
commit47366b19fb7f65dba1a7c731ee765b1216f47e33 (patch)
treeabd9ed54960dffbe338801854b056dbd3abfd6b2 /src
parent560274d042d12f31aceabff6a293cdf71429552d (diff)
More GCC-7 errors
The Wmaybe-uninitialized is the new error included with Wall. This patch addresses the warning and fixes it. Change-Id: I8fdf9ff2d236c46b717024a14874fbbbad8af303 Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/snat/out2in.c2
-rw-r--r--src/vppinfra/bihash_template.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/snat/out2in.c b/src/plugins/snat/out2in.c
index 824406ab425..e8ddcf1cfd7 100644
--- a/src/plugins/snat/out2in.c
+++ b/src/plugins/snat/out2in.c
@@ -308,6 +308,8 @@ u32 icmp_match_out2in_slow(snat_main_t *sm, vlib_node_runtime_t *node,
sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_RX];
rx_fib_index0 = ip4_fib_table_get_index_for_sw_if_index (sw_if_index0);
+ key0.protocol = 0;
+
err = icmp_get_key (ip0, &key0);
if (err != -1)
{
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index 7117f9941e2..004e8a9a558 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -252,6 +252,8 @@ int BV (clib_bihash_add_del)
hash >>= h->log2_nbuckets;
+ tmp_b.linear_search = 0;
+
while (__sync_lock_test_and_set (h->writer_lock, 1))
;