Skip to content

Commit dd39c94

Browse files
committed
Update MISRA RULE-8-4 test for changes in latest CodeQL
1 parent 05255c3 commit dd39c94

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
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. |

c/misra/test/rules/RULE-8-4/object1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ extern int i1 = 0; // NON_COMPLIANT
55

66
int i2 = 0; // NON_COMPLIANT
77

8-
extern int i3; // NON_COMPLIANT
8+
extern int i3; // NON_COMPLIANT - not detected as `short i3` exists
99

1010
extern int i4; // COMPLIANT

c/misra/test/rules/RULE-8-4/object2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
short i3 = 0; // NON_COMPLIANT
1+
short i3 = 0; // NON_COMPLIANT - not detected as `extern int i3` exists
22

33
signed int i4 = 0; // COMPLIANT

0 commit comments

Comments
 (0)