-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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_2012 rule 20.7 violation #843
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #843 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 6 6
Lines 3179 3179
Branches 885 885
=======================================
Hits 2981 2981
Misses 91 91
Partials 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fix MISRA C 2012 rule 20.7 violation
Description
MISRA C 2012 rule 20.7
MISRA C Violation
The macro definition is MISRA noncompliant if it fails to parenthesize the parameters and the expressions resulting from the expansion improperly, since the results may be not the one expected.
The macro definition:
Fix
In this macro defintion,
pxStreamBuffer
should be parenthesized appropriately.Test Steps
N/A
Checklist:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.