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 1
1
| object1.c:4:12:4:13 | definition of i1 | No separate compatible declaration found for this definition. |
2
2
| 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
5
5
6
6
int i2 = 0 ; // NON_COMPLIANT
7
7
8
- extern int i3 ; // NON_COMPLIANT
8
+ extern int i3 ; // NON_COMPLIANT - not detected as `short i3` exists
9
9
10
10
extern 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
2
2
3
3
signed int i4 = 0 ; // COMPLIANT
You can’t perform that action at this time.
0 commit comments