MISRA Discussion Forums
In Example suit R_05_01_2.c - Printable Version

+- MISRA Discussion Forums (https://forum.misra.org.uk)
+-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4)
+--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21)
+---- Forum: 8.5 Identifers (https://forum.misra.org.uk/forumdisplay.php?fid=160)
+---- Thread: In Example suit R_05_01_2.c (/showthread.php?tid=1416)



In Example suit R_05_01_2.c - swasti - 17-04-2018

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 */


Re: In Example suit R_05_01_2.c - misra-c - 24-04-2018

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.