Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For rule 5-2-12: replace "variable" with "value"?
#3
I have another question about the example code on page 83.

If
Code:
f2(a);// Non-compliant - Dimension "10" lost due to array to pointer conversion

is changed to

Code:
f2(&a[0]);

no more 5-2-12 violation is reported by our static analysis tool.
But my guess is, this is a loophole not intended by MISRA?

Thanks.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)