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: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: -Werror
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Mon, 27 Aug 2001 07:18:19 -0400

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'

jjm



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