Skip to content

drivers: intc: irqstr: Fix uninitialized variable error #89026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Apr 24, 2025

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: #88996

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: zephyrproject-rtos#88996
Signed-off-by: Daniel Baluta <[email protected]>
@dleach02 dleach02 added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Apr 24, 2025
@kartben kartben merged commit c9f149c into zephyrproject-rtos:main Apr 24, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Interrupt Controller platform: NXP Drivers NXP Semiconductors, drivers Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: build_system: intc_nxp_irqsteer.c build warning
5 participants