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

Re: -Wall in 5.8

Thread Previous
Jarkko Hietaniemi
July 31, 2001 08:02
Re: -Wall in 5.8
Message ID:
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++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About