27-09-2024, 05:49 PM
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?
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?