Skip to content

Commit 2c014e9

Browse files
keith-packardstephanosio
authored andcommitted
FilteringFunctions: Avoid uninitialized value warnings from GCC 14.3
GCC version 14.3 does more extensive checking for potentially uninitialized values and warns about a couple of arrays. Initialize them to zero to make the compiler happy. Signed-off-by: Keith Packard <[email protected]>
1 parent d80a49b commit 2c014e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/FilteringFunctions/arm_fir_decimate_f32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ ARM_DSP_ATTRIBUTE void arm_fir_decimate_f32(
393393
float32_t *px0, *px1, *px2, *px3;
394394
float32_t x1, x2, x3;
395395

396-
float32x4_t accv,acc0v,acc1v,acc2v,acc3v;
396+
float32x4_t accv = { 0 },acc0v,acc1v,acc2v,acc3v;
397397
float32x4_t x0v, x1v, x2v, x3v;
398398
float32x4_t c0v;
399399
float32x2_t temp;

Source/FilteringFunctions/arm_fir_interpolate_f32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ ARM_DSP_ATTRIBUTE void arm_fir_interpolate_f32(
489489

490490
float32x4_t sum0v;
491491
float32x4_t accV0,accV1;
492-
float32x4_t x0v,x1v,x2v,xa,xb;
492+
float32x4_t x0v,x1v = { 0 },x2v,xa,xb;
493493
float32x2_t tempV;
494494

495495
/* S->pState buffer contains previous frame (phaseLen - 1) samples */

0 commit comments

Comments
 (0)