-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Add errors on invalid/missing function return #5321
Conversation
best to ask platformio guys :) @ivankravets @valeros |
Hi @dok-net, simply add it to |
@valeros, that's funny, because in #5310 @me-no-dev opined about patches to
and
But I don't know anything about that. With definitive guidance I would love to go ahead. |
@valeros flags are generated by the lib builder and as I explained to @dok-net , changes need to be done in the lib builder for them to work in arduino |
TBH I'm not sure how we can help then, @dok-net please add that flag directly to the lib builder. |
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.
This is not required until we update to GCC 10.x, is that correct?
@igrr No, that's not a correct conclusion. There is only a warning with the current compiler in master:
But the generated code is undefined and crashes:
|
No matter what, this PR doesn't fix the underlying issue, the chance alone is not relevant to the build process as it stands. |
Adaptation of esp8266/Arduino#8165 for the ESP32.
@me-no-dev Please inform me of how to handle the Platformio related files properly.