[Bug c/13029] [3.4 Regression] static consts and -Wunused-variable
mikpelinux at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 17 08:41:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13029
--- Comment #6 from Mikael Pettersson <mikpelinux at gmail dot com> ---
(In reply to Chengnian Sun from comment #4)
> May I ask what is the design rational of not warning unused static const
> variables?
See PR28901. There are cases of unused static const where the warning isn't
wanted, and so far the decision has been to favour those over the cases where
the warning _is_ wanted and would have detected real bugs. Sigh.
More information about the Gcc-bugs
mailing list