-
Notifications
You must be signed in to change notification settings - Fork 146
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
Using C11 stdnoreturn.h
causes compiler warnings in headers
#332
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for reporting the issue. The XED library uses the When you include To resolve this issue, I recommend swapping the order in which you include headers. By including the XED library headers before including You can adjust it to: #include <xed/xed-interface.h>
#include <stdnoreturn.h> Please let us know if this solution works for you. |
Thank you for the comprehensive response. Swapping the order of Please fix the headers to work in a C11 codebase. For C99 compatibility you can use the |
A fix will be available with the upcoming external release. |
The Xed headers have a bug where they generate compiler warnings when compiled in C11 code, specifically when `stdnoreturn.h` is included before they are. See intelxed/xed#332. Apply a PR patch to dodge this bug and permit a -Werror build. Signed-off-by: Jonathon Anderson <[email protected]>
The public headers introduce a compiler warning related to the
noreturn
attribute ifstdnoreturn.h
is included before they are. This prevents-Werror
builds from passing for XED users using C11 features:The text was updated successfully, but these errors were encountered: