退出打印视图
在以下示例中,空指针 vp 强制转换为结构指针。如果 lint -Xalias_level=weak(或更高),此示例将生成警告。
struct foo { int a; int b; }; struct foo *f; void *vp; void main() { f = (struct foo *)vp; /* struct pointer cast of void pointer warning */ }