Skip to content

Bump -std to gnu11 for static assertions#817

Merged
zakird merged 1 commit intozmap:mainfrom
droe:droe/c11
Mar 10, 2024
Merged

Bump -std to gnu11 for static assertions#817
zakird merged 1 commit intozmap:mainfrom
droe:droe/c11

Conversation

@droe
Copy link
Contributor

@droe droe commented Mar 9, 2024

I'd like to suggest bumping the C standard from GNU C99 to GNU C11. C11 has been around for sufficiently long that I don't think there are substantial risks or portability limitations associated with targeting C11 anymore, and there seem to be zero changes to the codebase required.

Motivation is mainly support for static assertions (compile-time assertions). On clang and GCC they do compile with GNU C99, but will emit compiler warnings that they need C11 on at least GCC.

@zakird zakird merged commit afbeb0b into zmap:main Mar 10, 2024
@droe droe deleted the droe/c11 branch March 11, 2024 08:01
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.

3 participants