This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]