parent
4d3f76b63c
commit
0e7ec1eddf
|
@ -1721,7 +1721,8 @@ class MisraChecker:
|
||||||
while not eq.isAssignmentOp and eq.astParent:
|
while not eq.isAssignmentOp and eq.astParent:
|
||||||
eq = eq.astParent
|
eq = eq.astParent
|
||||||
|
|
||||||
if not eq.isAssignmentOp:
|
# We are only looking for initializers
|
||||||
|
if not eq.isAssignmentOp or eq.astOperand2.isName:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if variable.isArray :
|
if variable.isArray :
|
||||||
|
|
|
@ -1247,7 +1247,7 @@ void misra_18_8(int x) {
|
||||||
int buf1[10];
|
int buf1[10];
|
||||||
int buf2[sizeof(int)];
|
int buf2[sizeof(int)];
|
||||||
int vla[x]; // 18.8
|
int vla[x]; // 18.8
|
||||||
static const unsigned char arr18_8_1[] = UNDEFINED_ID; // 9.2
|
static const unsigned char arr18_8_1[] = UNDEFINED_ID;
|
||||||
static uint32_t enum_test_0[R18_8_ENUM_CONSTANT_0] = {0};
|
static uint32_t enum_test_0[R18_8_ENUM_CONSTANT_0] = {0};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue