Skip to content

Commit

Permalink
Update misra-test.c
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Aug 8, 2023
1 parent 1b58a59 commit 7219a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/test/misra/misra-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ static void misra_14_2_fn1(bool b) {
g += 2;
i2 ^= 2; // 14.2
if (i2 == 2) {
g += g_arr[i2];
g += g_arr[i2]; // cppcheck-suppress legacyUninitvar
}
misra_14_2_init_value(&i2); // TODO: Fix false negative in function call
}
Expand Down

0 comments on commit 7219a9b

Please sign in to comment.