This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix bootstrap with older gcc version
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Binutils <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>
- Date: Fri, 15 Feb 2013 12:35:58 +0100
- Subject: Fix bootstrap with older gcc version
Hi,
this patch fixes an uninitialized warning in objcopy.c file.
ChangeLog
2013-02-15 Kai Tietz
* objcopy.c (copy_main): Initialize context variable.
Ok for apply?
Regards,
Kai
Index: objcopy.c
===================================================================
RCS file: /cvs/src/src/binutils/objcopy.c,v
retrieving revision 1.164
diff -p -u -r1.164 objcopy.c
--- objcopy.c 15 Feb 2013 09:32:31 -0000 1.164
+++ objcopy.c 15 Feb 2013 11:32:13 -0000
@@ -3662,7 +3662,7 @@ copy_main (int argc, char *argv[])
case OPTION_CHANGE_SECTION_VMA:
{
struct section_list * p;
- unsigned int context;
+ unsigned int context = 0;
const char *s;
int len;
char *name;