zephyr/tests/lib/cmsis_dsp
Tom Hughes b4f8a7f711 tests: lib: cmsis_dsp: Fix -Wsometimes-uninitialized warning
Building libraries.cmsis_dsp.distance with clang warns:

tests/lib/cmsis_dsp/distance/src/f32.c:99:3: error: variable 'val' is
used uninitialized whenever switch default is taken
[-Werror,-Wsometimes-uninitialized]
                default:
                ^~~~~~~
tests/lib/cmsis_dsp/distance/src/f32.c:104:19: note: uninitialized use
occurs here
                output[index] = val;
                                ^~~
tests/lib/cmsis_dsp/distance/src/f32.c:57:16: note: initialize the
variable 'val' to silence this warning
                float32_t val;
                             ^
                              = 0.0

Not really necessary since there is a zassert_unreachable, but doesn't
hurt to initialize the variable.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-03-23 13:19:27 +01:00
..
bayes tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
common everywhere: Replace diagnostic pragmas with TOOLCHAIN_* macros 2025-03-20 21:57:47 +01:00
complexmath tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
distance tests: lib: cmsis_dsp: Fix -Wsometimes-uninitialized warning 2025-03-23 13:19:27 +01:00
fastmath manifest: update cmsis-dsp to v1.16.2 2024-11-25 14:42:07 +01:00
filtering tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
interpolation tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
matrix tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
quaternionmath tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
statistics tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
support manifest: update cmsis-dsp to v1.16.2 2024-11-25 14:42:07 +01:00
svm tests: cmsis_dsp: reduce architecture scope 2024-11-16 15:01:55 -05:00
transform everywhere: Replace diagnostic pragmas with TOOLCHAIN_* macros 2025-03-20 21:57:47 +01:00