https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2024-06-27
Status|UNCONFIRMED |NEW
Severity|normal |enhancement
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C++ has -Wzero-as-null-pointer-constant .
Maybe it should be added for C also for at least C23 where nullptr exists now.
Note for C++, the enum value is NOT considered a null ptr. That is different
from C though.