In Example suit R_05_01_2.c

Moderators: misra-c, david ward

Post Reply
swasti
Posts: 1
Joined: Thu Apr 05, 2018 12:38 pm
Company: Softnautics

In Example suit R_05_01_2.c

Post by swasti » Tue Apr 17, 2018 12:15 pm

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

misra-c
Posts: 571
Joined: Thu Jan 05, 2006 1:11 pm

Re: In Example suit R_05_01_2.c

Post by misra-c » Tue Apr 24, 2018 10:45 am

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 viewtopic.php?t=1658
for a full explanation.
---
Posted by and on behalf of
the MISRA C Working Group

Post Reply

Return to “8.5 Identifers”