NULLはゼロだし整数として代入できちゃうよねえって最近のgccは気づいてくれるのすごいな!!

$ cat x.c
<stddef.h>
long x = NULL;
$ gcc -c x.c
x.c:2:10: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
2 | long x = NULL;
| ^~~~

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.zunda.ninja/users/zundan/statuses/115986586590169277 on your instance and quote it. (Note that quoting is not supported in Mastodon.)