-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix MISRA C++ 2023 rule 0.1.2 "The value returned by a function shall be used" #607
Comments
Probably SonarCloud rule 'The value returned by a function shall be "used"' could be used for this. We will investigate it during the current milestone. |
We went through all reported functions where the returned value should be checked. We have added explicit check of returned value wherever it makes sense. However, there are still some cases where the check does not make sense (e.g. if function returns
There are no exceptions in the generated code. |
Zserio version and language
Zserio: master branch
Commit hash: 4d22803
Language: C++
Priority : 3
Describe the bug
Check and resolve SCA warning MISRACPP2023-0_1_2-a " Unused function's 'put' return value"
See the attached xls for the SCA warning details
MISRACPP2023-0_1_2-a_Warning_ZserioRuntime.xlsx
How to reproduce
Steps to reproduce the behavior:
SCA run using MISRA 2023 configuration.
Expected behavior
No SCA warnings for MISRA 2023 ruleset
Additional context
N.A
@Roland-Homeier @mikir FYI.
The text was updated successfully, but these errors were encountered: