From 4e898eced6a0a116afb098d7bd53d98b8c1eca79 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 28 May 2024 13:00:44 +0100 Subject: [PATCH] mem: fix build on FreeBSD Fix build warnings on FreeBSD, due to unused value. Signed-off-by: Pablo de Lara --- mem/mem_zero_detect_perf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mem/mem_zero_detect_perf.c b/mem/mem_zero_detect_perf.c index 4c8f9f9..688222a 100644 --- a/mem/mem_zero_detect_perf.c +++ b/mem/mem_zero_detect_perf.c @@ -39,7 +39,6 @@ int main(int argc, char *argv[]) { - int val = 0; void *buf; struct perf start; @@ -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);