This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20562] no unused warning for static arrays
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2005 23:19:43 -0000
- Subject: [Bug c++/20562] no unused warning for static arrays
- References: <20050319231307.20562.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-19 23:19 -------
(In reply to comment #1)
> (In reply to comment #0)
> > There should be a "defined but not used" warning.
>
> Why, this is a constant array so it is removed right?
Never mind, but I can tell you this was already fixed by the time 4.0.0 was branched.
Try with -Wunused.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |minor
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562