GCC warnings for unused global variables
Joe Buck
jbuck@synopsys.com
Thu May 1 16:38:00 GMT 2003
On Wed, Apr 30, 2003 at 05:21:07PM -0700, Richard Henderson wrote:
> > Copyright (c) 1989, 1993, 1994
> > termcap.c 8.1 (Berkeley) 6/4/93
> > strftime.c 7.38
> > localtime.c 7.57
> > asctime.c 7.7
> > rec_seq.c 8.3 (Berkeley) 7/14/94
> > key_call.c 1.25 94/04/24 SMI
> >
> > Does #ident allow that?
>
> Yes. For ELF this normally winds up in the .comment section.
> Of course, this section is removed by strip, so it won't
> *necessarily* be there, but ...
Then it won't do. It is a 20-year-old convention to do this, PRECISELY
so that binaries can be stripped but still tracked.
> > const static rcsid's are very common.
>
> Then you'll have to ignore the warning.
Then we should take OUT the bleeping warning. It wasn't there before.
It is a regression.
More information about the Gcc
mailing list