Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump -std to gnu11 for static assertions #817

Merged
merged 1 commit into from Mar 10, 2024
Merged

Bump -std to gnu11 for static assertions #817

merged 1 commit into from Mar 10, 2024

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
11 checks passed
@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.

None yet

3 participants