https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87041
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Moving the null warning to the sprintf pass (and extending the latter to also handle {f,}printf as well) would solve the problem and help detect many other kinds of bugs a front-end warning can't.