test: clean LTO warnings
authorAndrzej Ostruszka <aostruszka@marvell.com>
Thu, 7 Nov 2019 15:03:13 +0000 (16:03 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 8 Nov 2019 14:23:37 +0000 (15:23 +0100)
commit1d3bb890a432e3f8b7223b1b68e658b40b1dc077
tree9a2407450063fe28a2eefcc7f8b40acae9a5e1f7
parent12bddd9134717884751d1100f13fac0abe541309
test: clean LTO warnings

During LTO build compiler reports some 'false positive' warnings about
variables being possibly used uninitialized.  This patch silences these
warnings.

Exemplary compiler warning to suppress (with LTO enabled):
error: ‘stats.greatest_free_size’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
  return len - overhead;

Signed-off-by: Andrzej Ostruszka <aostruszka@marvell.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_hash_readwrite.c
app/test/test_link_bonding_mode4.c
app/test/test_memzone.c