Page 1 of 1

MISRA: Code Design (MISRA C-2012 Directive 4.6)

Posted: Tue Jun 13, 2017 7:48 am
by Anitha Rajasekar
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)

Posted: Thu Sep 21, 2017 11:09 am
by misra-c
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)

Posted: Fri Sep 22, 2017 7:13 am
by dg1980
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.