https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115684

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> 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.

...so it sounds like there should be a warning from -Wc++-compat, too, then?

Reply via email to