https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100680
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- The warning is by design: it considers a constant non-null pointer value a likely result of (invalid) arithmetic on a null pointer, as in the example in pr99578 comment #1. *** This bug has been marked as a duplicate of bug 99578 ***