This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC warnings for unused global variables
- From: Richard Henderson <rth at redhat dot com>
- To: Alexander Kabaev <kabaev at mail dot ru>
- Cc: pthomas at suse dot de, ak03 at gte dot com, gcc at gcc dot gnu dot org
- Date: Wed, 30 Apr 2003 17:21:07 -0700
- Subject: Re: GCC warnings for unused global variables
- References: <20030429165657.634a1628.ak03@gte.com> <20030430083713.GU4016@paradies.suse.de> <20030430233243.GM697@redhat.com> <20030430194730.68abe5b4.kabaev@mail.ru>
On Wed, Apr 30, 2003 at 07:47:30PM -0400, Alexander Kabaev wrote:
> % what `which ls`
> /bin/ls:
> 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 ...
> Anyway, my question was about boatload of
> third-party software, which normally should not be modified locally.
> const static rcsid's are very common.
Then you'll have to ignore the warning.
r~