类型转换R-1-10-6强制
禁止无实质作用的类型转换
相同类型的类型转换
test.c
1void foo(int x, int y)2{3 int z = x + (int) y;禁止无实质作用的类型转换 [gjb8114-r-1-10-6]4}
截断类型转换
test.c
1void foo(void)2{3 float pi = 3.14f;4 double d;5 d = (int) pi + 2.0;6}