[Bug c/13029] [3.4 Regression] static consts and -Wunused-variable

chengniansun at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Feb 17 09:07:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13029

--- Comment #7 from Chengnian Sun <chengniansun at gmail dot com> ---
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.



More information about the Gcc-bugs mailing list