Menu

Misra 8.4 No Extern

2022-03-28
2022-03-28
  • Michael Miner

    Michael Miner - 2022-03-28

    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?

     
  • Michael Miner

    Michael Miner - 2022-03-28

    The issue was, I did not include the header file path.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.