[patch] bfd - fix warning

Dave Korn dave.korn.cygwin@googlemail.com
Thu Apr 23 11:54:00 GMT 2009


Matthias Klose wrote:
> I see the follwing warning (building with GCC-4.4):
> 
> peigen.c: In function '_bfd_pei_swap_sym_in':
> peigen.c:133: error: 'name' may be used uninitialized in this function
> make[3]: *** [peigen.lo] Error 1

  How peculiar.  I can't reproduce this with any of 4.3.2, 4.4.0rc and 4.5.0
on i686-pc-cygwin.  Are you using a plain vanilla build from upstream or do
you have distro-local patches?  Is your host 32- or 64-bit?

> bfd/
> 
> 	* bfd/peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.

  If it were up to me I would have thought this qualifies as "obvious", does
it not?

    cheers,
      DaveK



More information about the Binutils mailing list