Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 2.2 dead code and empty function
#2
This example is the same as the last example for rule 2.2 in the document.

Function vidNextStep is compliant with rule 2.2 because there are no operations that can be removed within the function.
However, the call of vidNextStep is non compliant with rule 2.2 as the call can be removed without any change in the program behaviour.
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)