https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81660
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Yup, that was only an option for the existing warning. We should extend the warning to detect the case above too.
mpolacek at gcc dot gnu.org via Gcc-bugs Thu, 05 Nov 2020 13:47:42 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81660
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Yup, that was only an option for the existing warning. We should extend the warning to detect the case above too.