File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
c/misra/test/rules/RULE-8-4 Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 11| object1.c:4:12:4:13 | definition of i1 | No separate compatible declaration found for this definition. |
22| object1.c:6:5:6:6 | definition of i2 | No separate compatible declaration found for this definition. |
3- | object2.c:1:7:1:8 | definition of i3 | No separate compatible declaration found for this definition. |
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ extern int i1 = 0; // NON_COMPLIANT
55
66int i2 = 0 ; // NON_COMPLIANT
77
8- extern int i3 ; // NON_COMPLIANT
8+ extern int i3 ; // NON_COMPLIANT - not detected as `short i3` exists
99
1010extern int i4 ; // COMPLIANT
Original file line number Diff line number Diff line change 1- short i3 = 0 ; // NON_COMPLIANT
1+ short i3 = 0 ; // NON_COMPLIANT - not detected as `extern int i3` exists
22
33signed int i4 = 0 ; // COMPLIANT
You can’t perform that action at this time.
0 commit comments