MISRA Discussion Forums

Full Version: Rule 8.3 - incorrect example or missing comment
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Function declaration in mc2_0803.h:
Code:
extern void mc2_0803_2 ( my_s32bit_int param0803 );
Function definition in mc2_0803_2.c:
Code:
void mc2_0803_2 ( my_other_s32bit_int param0803 )

The types are different (different typedef names) - either there should be "Not Compliant" comment or the type should be changed.
Function definition in mc2_0803_2.c:
Code:
void mc2_0803_2 ( my_other_s32bit_int param0803 )
This line is inconsistent with the prototype declaration in the header file and should be marked as "Not Compliant".
Well spotted!