cURL / Mailing Lists / curl-library / Single Mail

curl-library

PATCH/RFC: Add option to compile with -Werror, fix build on 64-bit Linux.

From: Ben Greear <greearb_at_candelatech.com>
Date: Fri, 26 Mar 2010 12:22:15 -0700

Here's a patch that enables
configure --enable-werror

It also fixes all compile warnings on 64-bit Fedora 11 Linux, compiles
clean on 32-bit FC8 as well.

I couldn't fix all of the configure logic to deal properly with -Werror,
so I used an ugly hack to write out -Werror to a file and then append it
to CFLAGS in the Makefile.am script. There has to be a better way to do this, but
I find automake logic to be totally baffling.

The ssh changes are the most risky and in need of review, and may
have issues on other platforms and/or version of libssh.

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-26