Skip to content

Commit

Permalink
mem: fix build on FreeBSD
Browse files Browse the repository at this point in the history
Fix build warnings on FreeBSD, due to unused value.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
  • Loading branch information
pablodelara committed May 31, 2024
1 parent 7ebc65b commit 4e898ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mem/mem_zero_detect_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
int
main(int argc, char *argv[])
{
int val = 0;
void *buf;
struct perf start;

Expand All @@ -51,7 +50,7 @@ main(int argc, char *argv[])
}

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 ": ");
perf_print(start, (long long) TEST_LEN);
Expand Down

0 comments on commit 4e898ec

Please sign in to comment.