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 1
1
| test.c:11:8:11:16 | (fp1 *)... | Cast performed between a function pointer and another type. |
2
2
| test.c:11:8:11:16 | (fp1)... | Cast performed between a function pointer and another type. |
3
3
| 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. |
5
4
| test.c:15:8:15:15 | (fp2)... | Cast performed between a function pointer and another type. |
6
5
| test.c:22:12:22:13 | (fp1)... | Cast performed between a function pointer and another type. |
7
6
| 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) {
11
11
v1 = (fp1 * )v2 ; // NON_COMPLIANT
12
12
void * v3 = (void * )v1 ; // NON_COMPLIANT
13
13
14
- v2 = (fp2 * )0 ; // NON_COMPLIANT
14
+ v2 = (fp2 * )0 ; // COMPLIANT - null pointer constant
15
15
v2 = (fp2 * )1 ; // NON_COMPLIANT
16
16
17
17
pfp2 v4 ;
You can’t perform that action at this time.
0 commit comments