-
Notifications
You must be signed in to change notification settings - Fork 0
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
runtime: use __attribute__((__noreturn__))
instead of _Noreturn
to avoid errors
#431
Conversation
I think we should replace our uses of |
In all cases, or just pre C11? |
All cases. Glibc sometimes defines it as |
Should I do something like Also, can I just use |
I think |
a060eff
to
e9260f2
Compare
…o avoid errors `_Noreturn` doesn't exist before C11, and is deprecated in C23 (in favor or `[[noreturn]]`), so it's simpler just to use `__attribute__((__noreturn__))` since we don't know what C version the headers will be compiled with.
e9260f2
to
f3be8c3
Compare
#define
_Noreturn
as nothing before C11 to avoid errors__attribute__((__noreturn__))
instead of _Noreturn
to avoid errors
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
_Noreturn
doesn't exist before C11, and is deprecated in C23 (in favor or[[noreturn]]
), so it's simpler just to use__attribute__((__noreturn__))
since we don't know what C version the headers will be compiled with.