develooper Front page | perl.perl6.internals | Postings from December 2001

Re: recent win32 build errors

Thread Previous | Thread Next
From:
Thomas Wouters
Date:
December 31, 2001 07:39
Subject:
Re: recent win32 build errors
Message ID:
20011231153911.GG9202@xs4all.nl
On Mon, Dec 31, 2001 at 03:21:38PM +0000, Simon Cozens wrote:
> On Mon, Dec 31, 2001 at 09:50:08AM -0500, Dan Sugalski wrote:
> > I committed a patch yesterday that forces -Wall for gcc builds. If that's 
> > not cranky enough, give me a list of more gcc switches and I'll add 'em 
> > into the list.

> I'd be very tempted to throw -Werror on there as well, just to force
> the issue a little.

This is *not* a good idea. The problem is that not all warnings are your own
fault :) I have seen a lot of examples where a missing prototype or
redefinition in OS headers results in a compile-time warning, and -Werror
would definately be the wrong thing then. You should use -Werror only if
you're afraid of not seeing stderr messages from gcc, or want gcc to stop
compiling at the first error to avoid the usual cascade of weird, seemingly
incorrect errors. :)

-Wall good, -Werror bad. -pedantic could clash with any gcc-specific code
such as the calculated-goto.

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

Thread Previous | Thread Next


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