Re: why are warning be treated as errors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



centos-bounces@xxxxxxxxxx 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.

//me
*******************************************************************
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**

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux