This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdw: Initialize variables in getcfi_gnu_eh_frame.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 03 Dec 2014 14:13:23 +0100
- Subject: Re: [PATCH] libdw: Initialize variables in getcfi_gnu_eh_frame.
On Thu, 2014-11-27 at 23:45 +0100, Mark Wielaard wrote:
> Some older GCCs are not clever enough to realize that when search_table
> is NULL not only are search_table_entries and search_table_encoding not
> initialized, they are also not used. Giving "may be used uninitialized"
> errors.
> [...]
> +++ b/libdw/ChangeLog
> @@ -1,3 +1,8 @@
> +2014-11-27 Mark Wielaard <mjw@redhat.com>
> +
> + * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Initialize
> + search_table_entries and search_table_encoding.
I pushed this to master now.