-
Notifications
You must be signed in to change notification settings - Fork 2.3k
nodiscard ChipError Batch #26: platform-specific src: silabs #42089
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
Conversation
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.
Code Review
This pull request introduces TEMPORARY_RETURN_IGNORED macros across the silabs platform code to handle [[nodiscard]] warnings. While this addresses compiler warnings, it also silences many error conditions that can lead to serious bugs, including silent failure of core functionality, data corruption, resource leaks, and undefined behavior from using uninitialized memory. I've added comments on the most critical instances where ignoring the return value is dangerous and should be addressed. A more systematic approach to error handling is needed rather than temporarily ignoring these return values, especially in functions that are void and have no other way to signal failure.
|
PR #42089: Size comparison from 4859b93 to ea09179 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
Batch 26 of ignored ChipError for #41629
Related issues
#41629
Testing
CI
Readability checklist
The checklist below will help the reviewer finish PR review in time and keep the
code readable:
descriptive
“When in Rome…”
rule (coding style)
See: Pull Request Guidelines