Skip to content

Commit 4e898ec

Browse files
committed
mem: fix build on FreeBSD
Fix build warnings on FreeBSD, due to unused value. Signed-off-by: Pablo de Lara <[email protected]>
1 parent 7ebc65b commit 4e898ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mem/mem_zero_detect_perf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
int
4040
main(int argc, char *argv[])
4141
{
42-
int val = 0;
4342
void *buf;
4443
struct perf start;
4544

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

5352
memset(buf, 0, TEST_LEN);
54-
BENCHMARK(&start, BENCHMARK_TIME, val |= isal_zero_detect(buf, TEST_LEN));
53+
BENCHMARK(&start, BENCHMARK_TIME, isal_zero_detect(buf, TEST_LEN));
5554

5655
printf("mem_zero_detect_perf" TEST_TYPE_STR ": ");
5756
perf_print(start, (long long) TEST_LEN);

0 commit comments

Comments
 (0)