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: "David O'Brien" <obrien at FreeBSD dot org>
- To: Richard Henderson <rth at redhat dot com>, Alexander Kabaev <kabaev at mail dot ru>, pthomas at suse dot de, ak03 at gte dot com, gcc at gcc dot gnu dot org
- Date: Fri, 2 May 2003 09:36:00 -0700
- Subject: Re: GCC warnings for unused global variables
- Organization: The NUXI BSD Group
- References: <20030429165657.634a1628.ak03@gte.com> <20030430083713.GU4016@paradies.suse.de> <20030430233243.GM697@redhat.com> <20030430194730.68abe5b4.kabaev@mail.ru> <20030501002107.GP697@redhat.com> <20030502160048.GA48907@dragon.nuxi.com> <20030502161415.GA7177@nevyn.them.org>
- Reply-to: obrien at FreeBSD dot org
On Fri, May 02, 2003 at 12:14:15PM -0400, Daniel Jacobowitz wrote:
> On Fri, May 02, 2003 at 09:00:48AM -0700, David O'Brien wrote:
> > On Wed, Apr 30, 2003 at 05:21:07PM -0700, Richard Henderson wrote:
> > > On Wed, Apr 30, 2003 at 07:47:30PM -0400, Alexander Kabaev wrote:
> > > > 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.
> >
> > Ah yes, the position of the GNU toolchain developers whose code isn't
> > even near warns clean...
> >
> > As someone with a source base that is (well was until GCC 3.3) warns
> > clean I can tell you adding things willy nilly to -Wall is a problem. If
> > GCC and Binutils were -Wall -Werror clean, maybe the GCC developers
> > thinking this thread isn't an issue would have a different opinion.
>
> Have you noticed perhaps that the majority of GCC HEAD _is_ -Wall
> -Werror clean?
I will when it is released. Nothing released so far has been.
--
-- David (obrien@FreeBSD.org)