Re: disabling -Werror on a autotools based build

2011-03-28 Thread Richard W.M. Jones
On Sun, Mar 27, 2011 at 02:54:56PM -0300, Sergio Belkin wrote: 2011/3/27 Ralf Corsepius rc040...@freenet.de: On 03/27/2011 11:22 AM, gia...@gmail.com wrote: I'm trying to rebuild a package with an autotools based toolchain and it's failing because they use -Werror and gcc 4.6 spits out few

Re: disabling -Werror on a autotools based build

2011-03-28 Thread Ben Boeckel
Richard W.M. Jones rjo...@redhat.com wrote: In libguestfs we have some pretty complex autotools magic to deal with all this: http://git.annexia.org/?p=libguestfs.git;a=blob;f=configure.ac;h=f1b56d2dbe9a118901f7426bcc176f624d841f63;hb=HEAD#l67 CHASM has similar logic for CMake (also clang

Re: disabling -Werror on a autotools based build

2011-03-28 Thread Ralf Corsepius
On 03/28/2011 04:58 PM, Ben Boeckel wrote: Richard W.M. Jonesrjo...@redhat.com wrote: In libguestfs we have some pretty complex autotools magic to deal with all this: http://git.annexia.org/?p=libguestfs.git;a=blob;f=configure.ac;h=f1b56d2dbe9a118901f7426bcc176f624d841f63;hb=HEAD#l67 CHASM

Re: disabling -Werror on a autotools based build

2011-03-28 Thread Conrad Meyer
On Mon, 28 Mar 2011 17:08:33 +0200 Ralf Corsepius rc040...@freenet.de wrote: On 03/28/2011 04:58 PM, Ben Boeckel wrote: Richard W.M. Jonesrjo...@redhat.com wrote: In libguestfs we have some pretty complex autotools magic to deal with all this:

Re: disabling -Werror on a autotools based build

2011-03-28 Thread Ralf Corsepius
On 03/28/2011 07:40 PM, Conrad Meyer wrote: On Mon, 28 Mar 2011 17:08:33 +0200 Ralf Corsepiusrc040...@freenet.de wrote: On 03/28/2011 04:58 PM, Ben Boeckel wrote: Richard W.M. Jonesrjo...@redhat.com wrote: In libguestfs we have some pretty complex autotools magic to deal with all this:

Re: disabling -Werror on a autotools based build

2011-03-27 Thread Jan Kratochvil
On Sun, 27 Mar 2011 11:22:48 +0200, gia...@gmail.com wrote: I'm trying to rebuild a package with an autotools based toolchain and it's failing because they use -Werror and gcc 4.6 spits out few new warnings on the code. You should fix those erors and and submit them upstream. Now, is it

Re: disabling -Werror on a autotools based build

2011-03-27 Thread Ralf Corsepius
On 03/27/2011 11:22 AM, gia...@gmail.com wrote: I'm trying to rebuild a package with an autotools based toolchain and it's failing because they use -Werror and gcc 4.6 spits out few new warnings on the code. Packages adding -Werror by themselves are poorly designed. Contact their upstreams

Re: disabling -Werror on a autotools based build

2011-03-27 Thread Sergio Belkin
2011/3/27 Ralf Corsepius rc040...@freenet.de: On 03/27/2011 11:22 AM, gia...@gmail.com wrote: I'm trying to rebuild a package with an autotools based toolchain and it's failing because they use -Werror and gcc 4.6 spits out few new warnings on the code. Packages adding -Werror by themselves

Re: disabling -Werror on a autotools based build

2011-03-27 Thread Kevin Kofler
Sergio Belkin wrote: 2011/3/27 Ralf Corsepius rc040...@freenet.de: Packages adding -Werror by themselves are poorly designed. Just to learn: Ralf, Why do you say that? :-) Using -Werror by default is a very bad idea. Warnings can have false positives, or otherwise be harmless. And in

Re: disabling -Werror on a autotools based build

2011-03-27 Thread Ralf Corsepius
On 03/28/2011 12:48 AM, Kevin Kofler wrote: Sergio Belkin wrote: 2011/3/27 Ralf Corsepiusrc040...@freenet.de: Packages adding -Werror by themselves are poorly designed. Just to learn: Ralf, Why do you say that? :-) Using -Werror by default is a very bad idea. Warnings can have false