https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97817
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- I agree that the text of the warning could be improved. I'm hoping to make changes along the lines you suggest for GCC 12 (it's too late for GCC 11),