https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571
Alejandro Colomar <alx at kernel dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alx at kernel dot org --- Comment #4 from Alejandro Colomar <alx at kernel dot org> --- If you want a diagnostic for that, you should add (or ask for) -Wnull-as-null-pointer-constant NULL is not zero. I want to get warned for 0 but not for NULL.