Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 8.11(req) - Clarification required
#2
MISRA-C meeting 23-8-2006

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)