https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105210
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- It would appear that clang trunk is better at finding set-but-not-used variables than gcc. Here are some more cases: ./../trunk.git/gcc/genautomata.cc:5664:7: warning: variable 'alts_number' set but not used [-Wunused-but-set-variable] ../../trunk.git/gcc/graphite-poly.cc:344:7: warning: variable 'nb_reads' set but not used [-Wunused-but-set-variable] ../../trunk.git/gcc/graphite-poly.cc:345:7: warning: variable 'nb_writes' set but not used [-Wunused-but-set-variable] ../../trunk.git/gcc/lto-wrapper.cc:1428:12: warning: variable 'n_debugobj' set but not used [-Wunused-but-set-variable] ../../trunk.git/libdecnumber/dpd/decimal64.c:617:8: warning: variable 'n' set but not used [-Wunused-but-set-variable] ../../trunk.git/gcc/tree-switch-conversion.cc:2042:11: warning: variable 'ranges' set but not used [-Wunused-but-set-variable] I am not sure if these variables are candidates for deletion, or some code should be using them.