[CentOS] why are warning be treated as errors?

Thu Apr 7 14:25:31 UTC 2011
Brunner, Brian T. <BBrunner at gai-tronics.com>

centos-bounces at centos.org wrote:
> Hello,
> I am trying to compile RHEL-6 kernel srpm on Fedora 14 and
> run into the following problem. From what I read
> -Werror flag causes warnings to be treated as errors - but I
> don't see that flag on in the following. Any ideas?

My guess: 
gcc4.4.4 had --disable-werror by default, so we must -werror explicitly
to get warning treated as errors; 
gcc4.5.1 does NOT have --disable-werror by default, so, 
unless you specify --disable-werror on the compile line, warnings are
treated like errors.

I don't have either compiler version here at work, so I can't verify.

ANYHOW, if your 4.5.1 build tree Makefile has CFLAGS with
--disable-werrors in it, does the problem go away?

Insert spiffy .sig here:
Life is complex: it has both real and imaginary parts.

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**