What
There are many cases where calls in the osal component return an OsalReturn but the caller doesn't check the result.
We should set all return types that can error in the Osal component as [[nodiscard]] and fix the warnings.
We could also set the actual OsalReturnType as [[nodiscard]] either is fine.
Acceptance Criteria (DoD)
- All methods in the osal with errors are marked with
[[nodiscard]]
- All warnings for no discard are fixed
How
No response
What
There are many cases where calls in the osal component return an OsalReturn but the caller doesn't check the result.
We should set all return types that can error in the Osal component as
[[nodiscard]]and fix the warnings.We could also set the actual
OsalReturnTypeas[[nodiscard]]either is fine.Acceptance Criteria (DoD)
[[nodiscard]]How
No response