Dear Sir or Madame
If there is a program consisting of both a .h and .c
and the xxx.h file looks like this
extern unsigned char I2CSWDriver_Read(I2CSWDriverResult_t result, I2CSWDriverFlag_t flag)
and .c file do
The compiler will produce strange error message, like "old C style declaration" and sometimes no error messages at all,
The error lies in that there is a missing ';' at the end of the extern declaration of the function, this "falls over" to the .c file
I must suggest that the compiler warn for this, that is, if a unfinished declaration exist in the .h file when the .h file ends.
Log in to post a comment.