zephyr/tests/lib
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
..
acpi
c_lib everywhere: Replace diagnostic pragmas with TOOLCHAIN_* macros 2025-03-20 21:57:47 +01:00
cbprintf_fp
cbprintf_package
cmsis_dsp tests: lib: cmsis_dsp: Fix -Wsometimes-uninitialized warning 2025-03-23 13:19:27 +01:00
cmsis_nn tests: cmsis-nn: update tests for v7.0.0 2025-02-13 06:39:17 +01:00
cobs tests: utils: lib: cobs tests 2025-03-11 05:36:49 +01:00
cpp kscan: drop kscan and any reference 2025-03-13 16:56:26 +00:00
devicetree device: introduce struct device_ops 2025-03-10 21:32:40 +01:00
fdtable
gui/lvgl tests: Introduce greyscale-related tests modifications 2025-03-12 14:05:14 +00:00
hash_function
hash_map
heap
heap_align tests/lib/heap_align: improve test some more 2025-03-17 02:21:27 +01:00
json
linear_range
lockfree
math/interpolation tests: math: interpolation: disable floating point contraction 2025-01-09 09:51:39 +01:00
mem_alloc everywhere: Use correct macro for gcc-specific warnings 2025-03-20 21:57:47 +01:00
mem_blocks
mem_blocks_stats
mpsc_pbuf boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
multi_heap tests: lib: multi_heap: fix stack overflow 2025-03-12 07:15:12 +01:00
net_buf
newlib
notify
onoff
p4workq kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00
ringbuffer ring_buffer: shrink size of struct ring_buf 2025-03-11 08:59:05 +01:00
shared_multi_heap
smf tests: lib: smf: Add missing equals 2025-01-20 16:27:10 +01:00
sprintf everywhere: Use correct macro for gcc-specific warnings 2025-03-20 21:57:47 +01:00
spsc_pbuf
sys_util
time boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00