https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95057
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That is something this warning can't warn about. The warning is a simple FE warning that uses two bits, one for whether certain decl was used and one whether it was read. The warning then diagnoses those that have the former bit set and not the latter (of course, there are some exceptions etc.).