File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
c/misra/test/rules/RULE-11-1 Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 11| test.c:11:8:11:16 | (fp1 *)... | Cast performed between a function pointer and another type. |
22| test.c:11:8:11:16 | (fp1)... | Cast performed between a function pointer and another type. |
33| test.c:12:14:12:23 | (void *)... | Cast performed between a function pointer and another type. |
4- | test.c:14:8:14:15 | (fp2)... | Cast performed between a function pointer and another type. |
54| test.c:15:8:15:15 | (fp2)... | Cast performed between a function pointer and another type. |
65| test.c:22:12:22:13 | (fp1)... | Cast performed between a function pointer and another type. |
76| test.c:25:8:25:9 | (fp1)... | Cast performed between a function pointer and another type. |
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ void f1(void) {
1111 v1 = (fp1 * )v2 ; // NON_COMPLIANT
1212 void * v3 = (void * )v1 ; // NON_COMPLIANT
1313
14- v2 = (fp2 * )0 ; // NON_COMPLIANT
14+ v2 = (fp2 * )0 ; // COMPLIANT - null pointer constant
1515 v2 = (fp2 * )1 ; // NON_COMPLIANT
1616
1717 pfp2 v4 ;
You can’t perform that action at this time.
0 commit comments