GCC warnings for unused global variables
David O'Brien
obrien@FreeBSD.org
Fri May 2 21:21:00 GMT 2003
On Fri, May 02, 2003 at 08:44:51PM +0200, Laurent Guerby wrote:
> On Fri, 2003-05-02 at 18:34, David O'Brien wrote:
> > On Fri, May 02, 2003 at 01:42:30PM +0200, Bonzini wrote:
> > > mankind is warned with at least a year of advance, and let's face that
> > > the fix is (more or less) as simple as
> > > grep -rl "^static.*const.*rcsid" | perl -i -pe '!$replaced_yet && s/^static.*const(.*rcsid)/volatile$1/ && ($replaced_yet = 1)'.
> >
> > You've never worked on a large corporate source base have you? Just
> > making the source change is only 1/2 the battle. Getting the review
> > board (or release engineer, or what ever) approval for wide sweeping
> > changes can be quite difficult.
>
> I assume such a body will also disallow compiler change,
> so you won't be hit by the new warning :).
When porting to a new CPU, one has no choice about using an older
compiler.
I just got off the phone with another very, very large ISV with Linux
products. They are also feeling mucho pain jumping from 3.2.2 -> 3.3 due
to things that were warnings are now errors. GCC 3.2 had no warning that
such things would be depreciated like this. *sigh*
--
-- David (obrien@FreeBSD.org)
More information about the Gcc
mailing list