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
"noreturn
attribute ignored" warning with ESP-IDF v5.0.1 (IDFGH-10064)
#11339
Comments
noreturn
attribute ignored" warning with ESP-IDF v5.0.1noreturn
attribute ignored" warning with ESP-IDF v5.0.1 (IDFGH-10064)
Could you please post the complete command line which is used to compile this source file ( |
Thanks for the swift response: here's the relevant entry from
|
Are you including anything else before "freertos/FreeRTOS.h"? I tried compiling a source file with only |
Aha, yes, so we do bring in a
The commit where the Question is, what is the right thing to do? Have we got the STDC version wrong for this, or should we just add another conditional so that |
The fact that including stdnoreturn.h before freertos/FreeRTOS.h leads to this warning is still a bug in IDF, i think, so we'll have to fix this! What happens is, stdnoreturn.h defines In the meantime, you can add an |
Excellent, I will do that, you may close this issue if you wish. Thanks again for the remarkably swift response. |
You are welcome! We can keep this open, the issue will get closed automatically when we push a fix. |
* noreturn may be replaced by third-party macros, rendering it ineffective * Closes #11339
* noreturn may be replaced by third-party macros, rendering it ineffective * Closes #11339
Answers checklist.
IDF version.
v5.0.1 a4afa44
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Compile without warnings.
What is the actual behavior?
I'm getting some warnings from within the ESP-IDF header files themselves about the
noreturn
attribute being ignored, see below. Is this (a) just a "fact of life" given where version 5 is at the moment, or (b) might I be doing something wrong, or (c) should I be suppressing them, etc...?Steps to reproduce.
Include
FreeRTOS.h
in a.c
file and compile that.c
file usingidf.py
.Build or installation Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: