Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In Example suit R_05_01_2.c
#1
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 */
<t></t>
Reply
#2
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.
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)