Directive 4.5

Moderators: misra-c, david ward

Post Reply
Posts: 117
Joined: Wed Apr 27, 2016 2:33 pm
Company: Elektrobit Automotive GmbH

Directive 4.5

Post by dg1980 » Thu Sep 01, 2016 12:59 pm

Dear MISRA team,

please read the text carefully and then read MISRA C++ 2008 Rule 2-10-1.
It is virtually identical but in C++ it is rated required and in C it is rated advisory.
Was that a change on purpose or an accident?

Posts: 572
Joined: Thu Jan 05, 2006 1:11 pm

Re: Directive 4.5

Post by misra-c » Fri Sep 23, 2016 8:41 am

The MISRA-C working group reviewed the specification of "Guideline categories" when updating the guidelines in 2012, which is after the MISRA C++ guidelines were written in 2008. It was decided that as this rule did not directly lead to undefined behaviour that the categorisation should be changed to Advisory.
Posted by and on behalf of
the MISRA C Working Group

Post Reply

Return to “7.4 Code design”