test/thash: fix build with clang 13
authorConor Walsh <conor.walsh@intel.com>
Mon, 15 Nov 2021 17:58:50 +0000 (17:58 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 12:01:52 +0000 (13:01 +0100)
commit6dfcdf8fd54ae2b94a2897e3744f7dd80fbcae2f
tree712101465bb10530a71578005ea1cc6317f15dd7
parent23c97a67e53e937e7bf35ae84d298857e7298ada
test/thash: fix build with clang 13

run_rss_calc() is used to compare the number of cycles spent computing a
hash value for different implementations.
clang 13 reports the hash variable as being unused, but run_rss_calc()
needs this variable as a placeholder for computing the hash value.

Bugzilla ID: 881
Fixes: 239fffe0402e ("test/thash: add performance tests for Toeplitz hash")

Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_thash_perf.c