mem: fix build on FreeBSD

Fix build warnings on FreeBSD, due to unused value.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2024-05-28 13:00:44 +01:00
parent 7ebc65baa7
commit 4e898eced6

View File

@ -39,7 +39,6 @@
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
int val = 0;
void *buf; void *buf;
struct perf start; struct perf start;
@ -51,7 +50,7 @@ main(int argc, char *argv[])
} }
memset(buf, 0, TEST_LEN); memset(buf, 0, TEST_LEN);
BENCHMARK(&start, BENCHMARK_TIME, val |= isal_zero_detect(buf, TEST_LEN)); BENCHMARK(&start, BENCHMARK_TIME, isal_zero_detect(buf, TEST_LEN));
printf("mem_zero_detect_perf" TEST_TYPE_STR ": "); printf("mem_zero_detect_perf" TEST_TYPE_STR ": ");
perf_print(start, (long long) TEST_LEN); perf_print(start, (long long) TEST_LEN);