Skip to content

Conversation

carlescufi
Copy link
Member

C99 has been the minimum required C standard version for Zephyr since its inception. After multiple attempts and discussions, a decision has been made to upgrade to C17 going forward.
This commits replaces the default C standard from C99 to C17 in the configuration and build system.

@carlescufi
Copy link
Member Author

@stephanosio @nashif @keith-packard should we also enforce C++17 at the same time, for consistency?

C99 has been the minimum required C standard version for Zephyr since
its inception. After multiple attempts and discussions, a decision has
been made to upgrade to C17 going forward.
This commits replaces the default C standard from C99 to C17 in the
configuration and build system.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
As part of the transition from C99 to C17 as the minimum supported C
standard version, remove the workarounds in the formatted output
subsystem to maintain compatibility with toolchains that do not support
the _Generic keyword.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
Copy link

sonarqubecloud bot commented Oct 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants