This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] bfd - fix warning
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Matthias Klose <doko at ubuntu dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 23 Apr 2009 13:05:09 +0100
- Subject: Re: [patch] bfd - fix warning
- References: <49F050B8.4050208@ubuntu.com>
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