http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13029
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Chengnian Sun from comment #7) > Thanks, Jakub and Mikael. > > I see it now. IMHO, it might be worthy to add a flag -Wunused-const-variable > similar to Clang, which is not included either -Wall or -Wextra. Therefore > the end user can decide whether to enable this warning based on their > specific scenario. I think it is better than the current case that people > who need this warning support cannot get it. Yeah, I guess that is a possibility.