We found that when I use a function that is not decleared in header files but are in other soure files, the cw just couldn't generate an error and it may lead to some value are not right, and sometimes we could'n find until the product has been used for a while, we need the cw generate an error to prevent this problem happen again.
Just enable all compiler warnings (-w on -w all). And you will receive the compiler error "function has no prototype".
Hello,
could you please clarify, which device and CodeWarrior you use?
Regards,
Martin
we are using mc9s12hy64 & mc9s12xet256 and our develop tool is codewarrior 5.9
Hello hongjian,
We have report this problem to the comipler tool team many years ago,
while they think this is not a bug, we should refer to the ANSI standard to write code .
So we should declared the function , includes the header file , then there will be no error call.
BR
Alice