zephyr/tests/lib/notify
Stephanos Ioannidis bde270b1d5 tests: lib: notify: Fix uninitialised variable warning
This commit sets an initial value of 0 for the `res` variable, whose
pointer is passed to other functions and is not directly assigned
within the calling function.

Note that, when the test completes successfully, the value of the `res`
variable should be set to `423` (the value of `set_res`).

This fixes the "‘res’ may be used uninitialized" warning generated by
the GCC 12.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
2022-07-29 16:44:04 +01:00
..
src tests: lib: notify: Fix uninitialised variable warning 2022-07-29 16:44:04 +01:00
CMakeLists.txt
prj.conf tests: lib: move notify to new ztest API 2022-07-12 11:19:22 +02:00
testcase.yaml