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.