This is the mail archive of the gcc-patches@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]

Re: PATCH (head): -Wunused-static-variable


On Fri, May 02, 2003 at 11:19:44AM +0100, Nathan Sidwell wrote:
> IIRC -Wunused used to warn about this kind of thing. I've not been paying
> attention. Has the -Wunused functionality been moved into -Wall, or is it
> something else?
> 
> what is wrong with having this check in -Wunused?

-Wunused used to not warn about 'static const' as in the below:

    static const char sccsid[] = "@(#)utilities.c   8.6 (Berkeley) 5/19/95";

now it does.

-- 
-- David  (obrien@FreeBSD.org)


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