Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 13.3 incr/decr op with volatile
#5
(03-02-2017, 03:35 PM)misra-c Wrote: 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.

Hello, would you be able to explain why the above code snippet is compliant with 13.2 and 13.3? Is the rationale that it is not using ++/--?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)