13-05-2016, 12:47 PM
Thank you for drawing our attention to this question. It was not the intention of the MISRA-C working group that rule 8.4 should apply to "main". We will be issuing a clarification.
In summary, a "main" function must contain a prototyped definition, but need not have a separate declaration.
In summary, a "main" function must contain a prototyped definition, but need not have a separate declaration.
Posted by and on behalf of the MISRA C Working Group