Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 0.1.9 - is zero-initialization considered "dead code"?
#3
Thanks, it appears that my static analyzer mistakenly mapped the error message to 0.1.9.

I read now the discussion about 0.1.6:

https://forum.misra.org.uk/showthread.php?tid=1522

MISRA have previously stated that 0.1.6 is intended for DU anomalies only, so it does not appear this case falls under that category?

I also note that MISRA C++ 2023, rule 0.1.1, function f5() marks a very similar example as compliant. Is that also compliant under MISRA C++:2008?
Reply


Messages In This Thread
RE: Rule 0.1.9 - is zero-initialization considered "dead code"? - by cgpzs - 27-09-2024, 05:49 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)