Skip to content

Commit 2b9871a

Browse files
Ne10: Fix uninitialized variable warnings in FFT macros
Initialize 'tw' to 'twiddles' at declaration in both forward and backward FFT macros to suppress -Wmaybe-uninitialized errors. Signed-off-by: Ryan McClelland <rymcclel@gmail.com>
1 parent cbc4129 commit 2b9871a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Ne10/NE10_fft_int32.neonintrinsic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static void arm_ne10_mixed_radix_fft_forward_int32_##scaled##_neon (ne10_fft_cpx
12671267
ne10_fft_cpx_int32_t *Fout1; \
12681268
ne10_fft_cpx_int32_t *Fout_ls = Fout; \
12691269
ne10_fft_cpx_int32_t *Ftmp; \
1270-
const ne10_fft_cpx_int32_t *tw;\
1270+
const ne10_fft_cpx_int32_t *tw = twiddles;\
12711271
const ne10_fft_cpx_int32_t *tw1; \
12721272
\
12731273
/* init fstride, mstride, N */ \
@@ -1353,7 +1353,7 @@ static void arm_ne10_mixed_radix_fft_backward_int32_##scaled##_neon (ne10_fft_cp
13531353
ne10_fft_cpx_int32_t *Fout1; \
13541354
ne10_fft_cpx_int32_t *Fout_ls = Fout; \
13551355
ne10_fft_cpx_int32_t *Ftmp; \
1356-
const ne10_fft_cpx_int32_t *tw; \
1356+
const ne10_fft_cpx_int32_t *tw = twiddles; \
13571357
const ne10_fft_cpx_int32_t *tw1; \
13581358
\
13591359
/* init fstride, mstride, N */ \

0 commit comments

Comments
 (0)