Skip to content
Commit c9f149cf authored by Daniel Baluta's avatar Daniel Baluta Committed by Benjamin Cabé
Browse files

drivers: intc: irqstr: Fix uninitialized variable error

Move initialization of 'enabled' variable together with declaration.
This fixes the following compiler error:
error: 'enabled' may be used uninitialized [-Werror=maybe-uninitialized]

This is not really an error but the compiler is tricked by the
K_SPINLOCK() macro.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/88996


Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
parent 1c2fc02c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment