test/ring: fix build for O1 optimization
authorConor Walsh <conor.walsh@intel.com>
Tue, 10 Nov 2020 11:03:13 +0000 (11:03 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 15 Nov 2020 15:45:48 +0000 (16:45 +0100)
commit262cf9152b54b35e86ea474833828073a6d9b728
tree2e6dde55026ea1ca184beb4ec03db2463a948dac
parentbc8e32473cc3978d763a1387eaa8244bcf75e77d
test/ring: fix build for O1 optimization

When DPDK is compiled with gcc < 9 with the optimization level set to 1
gcc sees zcd in test_ring.h as possibly being uninitialised. To correct
this error if statements from _st_ring_dequeue_bulk and
_st_ring_enqueue_bulk were corrected within test_ring_mt_peek_stress_zc.c

Fixes: f72299fd157d ("test/ring: add stress tests for zero copy API")

Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
app/test/test_ring_mt_peek_stress_zc.c