[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build binutils-2.17 fails with gcc-4.1.2 because default -Werror
From: |
Nick Clifton |
Subject: |
Re: build binutils-2.17 fails with gcc-4.1.2 because default -Werror |
Date: |
Wed, 18 Apr 2007 16:15:39 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20061215) |
Hi anirkko,
/build/binutils-2.17/bfd/coffcode.h: In function 'coff_rtype_to_howto':
/build/binutils-2.17/bfd/coffcode.h:4928: warning: 'genrel.howto' may be used
uninitialized in this function
The attached patch should take care of this problem. Please could you
try it out.
Cheers
Nick
Index: bfd/coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.136
diff -c -3 -p -r1.136 coffcode.h
*** bfd/coffcode.h 26 Mar 2007 12:22:59 -0000 1.136
--- bfd/coffcode.h 18 Apr 2007 15:14:23 -0000
*************** coff_rtype_to_howto (bfd *abfd ATTRIBUTE
*** 4950,4955 ****
--- 4950,4956 ----
{
arelent genrel;
+ genrel.howto = NULL;
RTYPE2HOWTO (&genrel, rel);
return genrel.howto;
}