In can.h I have int8_t can_init();
In can.c I have int8_t can_init(){ / some code / }
This gives me the Misra warning "A compatible declaration shall be visible when an object or function with external linkage is defined"
There are no extern variables or functions in my code base, can.h does a proper include of can.h. Why am I seeing this misra warning?
The issue was, I did not include the header file path.
Log in to post a comment.
In can.h I have
int8_t can_init();
In can.c I have
int8_t can_init(){ / some code / }
This gives me the Misra warning "A compatible declaration shall be visible when an object or function with external linkage is defined"
There are no extern variables or functions in my code base, can.h does a proper include of can.h. Why am I seeing this misra warning?
The issue was, I did not include the header file path.