5.3.1 構造体ポインタへのスカラーポインタのキャスト
次の例では、integer 型のポインタ p が struct foo 型のポインタとしてキャストされます。この例で lint -Xalias_level=weak (またはそれ以上) を指定すると、エラーが生成されます。
struct foo {
int a;
int b;
};
struct foo *f;
int *p;
void main()
{
f = (struct foo *)p; /* struct pointer cast of scalar pointer error */
}