https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44677
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #8) > I would expect handling -Wunused-but-set-variable during Gimplification to > make detecting these sorts of things possible at least in the basic cases. That is way too late.