curl-library
Re: [configure] configure: Enable ./configure --enable-werror
From: Tor Arntsen <tor_at_spacetec.no>
Date: Mon, 29 Mar 2010 12:18:38 +0200
Date: Mon, 29 Mar 2010 12:18:38 +0200
On 28/03/2010, Ben Greear <greearb_at_candelatech.com> wrote:
> This allows developers to easily detect build errors as they
> will cause the compile to fail.
[..]
> +CURL_CFLAG_EXTRAS=""
> +if test X"$want_werror" == Xyes; then
> + CURL_CFLAG_EXTRAS="-Werror"
> +fi
It would only work with GCC (or GCC-option-compatible compilers like
ICC) though.. with Xlc (IBM compiler) it would be something like
-qhalt=w, or -qmaxerr=1:w, for example.
-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-29