23-08-2006, 10:54 AM
MISRA-C meeting 23-8-2006
We agree - this violates 8.10 only.
This violates 8.11.
Code:
int32_t var=0; /*VIOLATION, static should be applied*/
int32_t main(void)
{
var++;
return(var);
}
We agree - this violates 8.10 only.
Code:
extern int32_t var1;
static int32_t var1=0; /*Violation 8.11*/
This violates 8.11.
Posted by and on behalf of the MISRA C Working Group