This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/20562] no unused warning for static const arrays



------- Comment #7 from gdr at gcc dot gnu dot org  2005-11-26 07:35 -------
(In reply to comment #2)
> (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.

As of today GCC (mainline) produces NO diagnostics with -Wunused 


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-11-26 07:35:54
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]