Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 2.4 and tags the same as typedef names
#2
The phrase "struct coord" is redundant if it is not used anywhere else in the code. The code could be rewritten as
Code:
typedef struct
{
uint16_t x;
uint16_t y;
} coord;
The exception in rule 5.7 assumes that "struct coord" has been used some-where else in the code.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)