MISRA rule 17.4 violation ? - 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.17 Pointers and Arrays (https://forum.misra.org.uk/forumdisplay.php?fid=44) +---- Thread: MISRA rule 17.4 violation ? (/showthread.php?tid=876) |
MISRA rule 17.4 violation ? - misterb - 26-01-2012 Hello, my compiler find in the following code a MISRA violation 17.4 at the last view code lines. Is this correct? If yes, please tell me how to solve the above mentioned code. In my opinion there is no MISRA rule 17.4 violation. Code: #define BUF_LEN1 (512u) Many thanks in advance and best regards, Michael Re: MISRA rule 17.4 violation ? - misterb - 27-01-2012 Hi, I made a mistake. The above mentioned code is definitely a violation of MISRA rule 17.4. The compiler is correct. I'm sorry for the inconvenience. Kind regards, Michael |