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

Moderators: misra-c, david ward

Post Reply
Anitha Rajasekar
Posts: 2
Joined: Wed May 24, 2017 2:27 pm
Company: Visteon

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

Post by Anitha Rajasekar » Tue Jun 13, 2017 7:48 am

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?

misra-c
Posts: 554
Joined: Thu Jan 05, 2006 1:11 pm

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

Post by misra-c » Thu Sep 21, 2017 11:09 am

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.
---
Posted by and on behalf of
the MISRA C Working Group

dg1980
Posts: 108
Joined: Wed Apr 27, 2016 2:33 pm
Company: Elektrobit Automotive GmbH

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

Post by dg1980 » Fri Sep 22, 2017 7:13 am

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.

Post Reply

Return to “7.4 Code design”