Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: -Werror
Home

[Freeciv-Dev] Re: -Werror

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Cc: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: -Werror
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Aug 2001 13:49:17 +0200
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Mon, Aug 27, 2001 at 07:18:19AM -0400, Jeff Mallatt wrote:
> At 2001/08/27 03:42 , Reinier Post wrote:
> >On Mon, Aug 27, 2001 at 09:32:41AM +0200, Raimar Falke wrote:
> >> 
> >> Can we make -Werror the default? At least in a development version? It
> >> is a burden to add it and before making a patch or committing stuff
> >> you have to revert the changes of the Makefile.ins.
> >
> >~ % cc -Werror
> >cc: illegal option -Werror
> >
> >(This is Sun cc.)
> 
> You don't have to change files to add -Werror.  Just use:
> 
>     make CPPFLAGS=-Werror
> 
> Actually, I use an alias that does even more:
> 
>     make CPPFLAGS='-DDEBUG -Wpointer-arith -Wcast-align
> -Wmissing-prototypes -Wmissing-declarations -Werror'

Very nice. Thanks.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 BSD: Are you guys coming or what?


[Prev in Thread] Current Thread [Next in Thread]