File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
c/misra/test/rules/RULE-17-6 Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 11| test.c:2:33:2:36 | arr2 | Parameter arr2 is declared as an array type using the static keyword. |
22| test.c:3:39:3:42 | arr3 | Parameter arr3 is declared as an array type using the static keyword. |
3- | test.c:5:9:5:12 | arr4 | Parameter arr4 is declared as an array type using the static keyword. |
Original file line number Diff line number Diff line change 11void test_array (int arr1 [10 ]) {} // COMPLIANT
22void test_array_uses_static (int arr2 [static 11 ]) {} // NON_COMPLIANT
33void test_array_uses_static_multi (int arr3 [static 12 ][5 ]) {} // NON_COMPLIANT
4- void test_array_uses_static_again (
5- int arr4 [11 ]) { // COMPLIANT[FALSE_POSITIVE] - apparently a CodeQL
6- // bug where the static is associated with the fixed
7- // size
8- }
4+ void test_array_uses_static_again (int arr4 [11 ]) {} // COMPLIANT
You can’t perform that action at this time.
0 commit comments