MISRA Discussion Forums

Full Version: In Example suit R_05_01_2.c
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In Example suit R_05_01_2.c
Kindly explain why the following code is non-compliant?
int32_t ABC;
int32_t ABC = 0; /* Non-compliant */
int32_t ABC = 0; ( and int32_t ABC; ) are non compliant with respect to the following declaration in file R_05_01_1.c.
extern int32_t abc;

Please see the response to a previous question on this topic at https://www.misra.org.uk/forum/viewtopic.php?t=1658
for a full explanation.