Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 13.3 incr/decr op with volatile
#4
Your example does violate rule 13.3. It can be rewritten as
Code:
x = x + 1;
which complies with both rules 13.2 and 13.3.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)