Closed bradleysmith23 closed 5 months ago
/bot run formatting
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
7284d84
) 93.52% compared to head (1063466
) 93.55%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/bot run formatting
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Description
MISRA C 2012 Rule 13.3 states that the increment/decrement(++/--) operators should contain the only side-effect in an expression. As a result, using ++/-- on a volatile results in a violation as reading a volatile qualified variable is a side-effect itself. To remediate this issue, the value of the volatile is assigned to temporary variables in these cases, then the temporary variable is incremented or decremented before being written back to the volatile qualified variable.
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.