Skip to content

ipc4: base_fw: Make Astate handler a function#10528

Open
wjablon1 wants to merge 1 commit intothesofproject:mainfrom
wjablon1:astate_fix
Open

ipc4: base_fw: Make Astate handler a function#10528
wjablon1 wants to merge 1 commit intothesofproject:mainfrom
wjablon1:astate_fix

Conversation

@wjablon1
Copy link
Contributor

@wjablon1 wjablon1 commented Feb 6, 2026

It turns out the current implementation of STATIC_ASSERT cannot be used as the first instruction of switch/case for all the supported compilers. Initially I wanted to fix the macro itself but it’s not that easy (mainly because the macro is used in both global and local contexts). So I decided to move the code to a separate function (this should work because we already have similar occurrences).

Moving Astate handler to a function because STATIC_ASSERT cannot be used
as the first instruction of switch/case block

Signed-off-by: Wojciech Jablonski <wojciech.jablonski@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants