Why is the code below cited for violation of MISRA 13.6 - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA-C: 2004 rules (https://forum.misra.org.uk/forumdisplay.php?fid=17) +---- Forum: 6.13 Control Statement Expressions (https://forum.misra.org.uk/forumdisplay.php?fid=40) +---- Thread: Why is the code below cited for violation of MISRA 13.6 (/showthread.php?tid=812) |
Why is the code below cited for violation of MISRA 13.6 - kalpak - 03-03-2011 Why is the last code line (array element initialization) in the code below being cited for 13.6 violation by Crystal Revs MISRA checker: Code: /*Test code for Crystal revs MISRA rule 13.6 */ thanks, kalpak Re: Why is the code below cited for violation of MISRA 13.6 - misra-c - 07-03-2011 The code example does not appear to violate Rule 13.6. There is a missing ';' character at the end of the typedef but this would not explain the diagnostic message from your tool. MISRA does not provide guidance on specific tools so you should contact your tool provider for an explanation. Re: Why is the code below cited for violation of MISRA 13.6 - kalpak - 08-03-2011 Thanks, that ";" was forgotten while creating a minimum demo code to test. And even after adding that ";", the warning persists. Unfortunately the vendor of Crystal Revs was informed of this 2 weeks ago but they have not replied yet. |