develooper Front page | perl.perl5.porters | Postings from July 2001

Re: -Wall in 5.8

Thread Previous
From:
Jarkko Hietaniemi
Date:
July 31, 2001 08:02
Subject:
Re: -Wall in 5.8
Message ID:
20010731100157.E120@chaos.wustl.edu
On Tue, Jul 31, 2001 at 10:37:03AM -0400, Horsley Tom wrote:
> > I don't like MakeMaker taking away flags the user may have 
> > deliberately
> > added.  Perhaps if we want to guarantee that the core is always
> > built with -Wall, then ccflags.SH ought to add -Wall?
> 
> I hope whatever happens takes into account that the string "-Wall"
> only means something to some compilers, not every compiler in
> the world.

Of course.  $Config{gccversion} is useful.

> I'm also not sure there is any point in trying to remove all warnings
> since I've seen some compilers warn about some pretty stupid
> things (I've even had code that couldn't be made warn-proof for
> all the compilers I used because fixing a warning in one compiler
> caused a new warning in the other :-).

True.  Given more than one compiler trying to quench *all* the
warnings can be a rather practical demonstration of a chaotic
oscillator.  But once in a while the compiler warnings *do* unearth dirt.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About