RP2040 cannot be compiled with C11 enabled #54190
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: Raspberry Pi Pico
Raspberry Pi Pico (RPi Pico)
priority: low
Low impact/importance bug
Describe the bug
When compiling a project targeting RP2040 and C11 enabled, errors occur because both assert.h (from the std lib) and config_autogen.h (from zephyr) define
static_assert
as a macro, with the one in config_autogen not being guarded.To Reproduce
Steps to reproduce the behavior:
set_property(TARGET tgt PROPERTY C_STANDARD 11)
)Expected behavior
No compiler error
Impact
C11 cannot be used for RP2040 projects
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: