-
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 13.2 Violations #979
Conversation
/bot run formatting |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #979 +/- ##
=======================================
Coverage 93.52% 93.53%
=======================================
Files 6 6
Lines 3199 3200 +1
Branches 889 889
=======================================
+ Hits 2992 2993 +1
Misses 92 92
Partials 115 115
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: chinglee-iot <[email protected]>
/bot run formatting |
/bot run formatting |
|
* mbedtls is removed in this folder. Update the readme.txt accordingly. Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
Description
As stated in MISRA C 2012 - "Between any two sequence points or within any full expression (...) There shall be no more than one read access with the volatile-qualified type"
The recommended remediation by MISRA is to only access volatiles with assignment statements whenever possible.
Test Steps
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.