MISRA Discussion Forums
MISRA: Code Design (MISRA C-2012 Directive 4.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:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21)
+---- Forum: 7.4 Code design (https://forum.misra.org.uk/forumdisplay.php?fid=181)
+---- Thread: MISRA: Code Design (MISRA C-2012 Directive 4.6) (/showthread.php?tid=1350)



MISRA: Code Design (MISRA C-2012 Directive 4.6) - Anitha Rajasekar - 13-06-2017

I have a function with the below prototype
void functionName(void)
{
}
It doesn't use any int data type. Even though it shows the below warning for this code
MISRA: Code Design (MISRA C-2012 Directive 4.6)
1. misra_violation: [Advisory] MISRA C-2012 Directive 4.6 violation: typedefs that indicate size and signedness should be used in place of the basic int numerical type.

Can anyone please help me to resolve this issue?


Re: MISRA: Code Design (MISRA C-2012 Directive 4.6) - misra-c - 21-09-2017

In the code example shown, there is no violation of directive 4.6.

The MISRA-C working group is unable to make comments about individual tools. We suggest that you contact your tool provider.


Re: MISRA: Code Design (MISRA C-2012 Directive 4.6) - dg1980 - 22-09-2017

misra-c Wrote:The MISRA-C working group is unable to make comments about individual tools.
That is a problem - no tool is certified and the forum is filling with questions from tool vendors themselves.