11-12-2015, 01:10 PM
Given the limited information provided, it is not possible to give a definitive answer.
This answer assumes that there are no other declarations or definitions of CALIBRATION_MISMATCH in the translation unit. "U8 CALIBRATION_MISMATCH;" is then a tentative definition which becomes an external definition at the end of the translation unit.
This is compliant with rule 8.6 if there are no other definitions of CALIBRATION_MISMATCH in any other translation unit in the system. Note that including "globals.c" as a header file in another translation unit would mean that there was more than one definition in the system.
The MISRA-C working group can make no comments on messages from a particular tool. You should raise the issue with your tool vendor.
This answer assumes that there are no other declarations or definitions of CALIBRATION_MISMATCH in the translation unit. "U8 CALIBRATION_MISMATCH;" is then a tentative definition which becomes an external definition at the end of the translation unit.
This is compliant with rule 8.6 if there are no other definitions of CALIBRATION_MISMATCH in any other translation unit in the system. Note that including "globals.c" as a header file in another translation unit would mean that there was more than one definition in the system.
The MISRA-C working group can make no comments on messages from a particular tool. You should raise the issue with your tool vendor.
Posted by and on behalf of the MISRA C Working Group