13-08-2014, 07:25 AM
The phrase "struct coord" is redundant if it is not used anywhere else in the code. The code could be rewritten as
The exception in rule 5.7 assumes that "struct coord" has been used some-where else in the code.
Code:
typedef struct
{
uint16_t x;
uint16_t y;
} coord;
Posted by and on behalf of the MISRA C Working Group