Description
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 C11 flag on any project (
set_property(TARGET tgt PROPERTY C_STANDARD 11)
) - mkdir build; cd build
- cmake -DBOARD=rpi_pico
- make
- See error
Expected behavior
No compiler error
Impact
C11 cannot be used for RP2040 projects
Environment (please complete the following information):
- OS: Linux and Windows
- Toolchain: Zephyr SDK 0.15.0
- Zephyr 3.1 (Still occurs in 3.2)