cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [configure] configure: Enable ./configure --enable-werror

From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 29 Mar 2010 08:38:25 -0700

On 03/29/2010 03:18 AM, Tor Arntsen wrote:
> 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.

Maybe have to check the compiler in configure.ac then?

If you'll send a patch to get Xlc working, I'll test that it still
works with gcc :)

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-29