From bf925673de954ec17fdad8f2de356ee4c85f3467 Mon Sep 17 00:00:00 2001 From: Christian Holme Date: Tue, 10 Sep 2024 11:22:56 +0200 Subject: [PATCH] bench: fix clang and analyzer --- src/bench.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bench.c b/src/bench.c index 9a908b9c5..2f75eed80 100644 --- a/src/bench.c +++ b/src/bench.c @@ -545,6 +545,8 @@ static double bench_generic_expand(enum bench_typ typ, long scale) { long dims[DIMS] = { 1, 256 * scale, 256 * scale, 1, 1, 16, 1, 16 }; + float linphase_pos[DIMS] = { 0.5, 0.1 }; + complex float* x = md_alloc(DIMS, dims, CFL_SIZE); double tic = timestamp(); @@ -561,8 +563,7 @@ static double bench_generic_expand(enum bench_typ typ, long scale) case BENCH_LINPHASE: - float pos[DIMS] = { 0.5, 0.1 }; - linear_phase(DIMS, dims, pos, x); + linear_phase(DIMS, dims, linphase_pos, x); break; default: