-
Notifications
You must be signed in to change notification settings - Fork 41
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
allow code to build with -std=gnu23 (which is the new default in gcc-15) #2094
Conversation
7e69a6c
to
21c53ec
Compare
C23 is only partially implemented in Clang: https://clang.llvm.org/c_status.html#c2x |
Linux GCC and MSYS2 pass without changes. Good. |
Should we set the standard there? Line 18 in 3f41e8f
I think otherwise CMake will force C99 anyway. |
Indeed, seems that it overrides the standard at this point. I misread this as an "at least" requirement. |
I'll try this as an experiment. |
21c53ec
to
79b5e70
Compare
Now that's the kind of trouble I was expecting. 😁 |
Now, I consider these changes worth keeping. Is there anything we put to risk by including |
It should work, but I prefer to avoid it. It's misleading since we have our own |
Right, we don't let |
So why do we need |
Because in newer C standards, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
In other words, Schroedinger's cat. You only know if the key words are defined if you make sure they are defined. 😉 |
Thanks! |
No description provided.