https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114571
--- Comment #5 from Pierre Ossman <ossman at cendio dot se> --- That may be, but -Wzero-as-null-pointer-constant is documented as facilitating conversion to "nullptr", which means it definitely should be complaining about NULL, since that might not be the same thing. Compatibility with clang would also make everyone's lives easier.