aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
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/vppinfra
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/vppinfra')
-rw-r--r--src/vppinfra/bihash_template.c2
1 files changed, 2 insertions, 0 deletions
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))
;