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

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu.org

--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> ---
I would like this bug to be reopened.

I've read through this bug and various dups,
and it seems that there are two rationales given
for skipping the warning for const statics:

1. rcs_id.  It seems to me that this case could
   be handled by __attribute__((used)).

2. "static const"s appearing in system headers.
   It seems to me that this could be handled by
   the usual in_system_header_at check.

This warning would have caught a couple of previously
unnoticed bugs in gdb:
https://sourceware.org/ml/gdb-patches/2014-02/msg00342.html

Reply via email to