This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
elf-hppa.h warning fix
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Thu, 5 Apr 2018 09:15:02 +0930
- Subject: elf-hppa.h warning fix
* elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
(elf_hppa_info_to_howto_rel): Likewise.
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index f23f788..5eac129 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1027,7 +1027,7 @@ elf_hppa_info_to_howto (bfd *abfd,
{
unsigned int r_type = ELF32_R_TYPE (elf_reloc->r_info);
unsigned int type = r_type;
- reloc_howto_type *howto;
+ reloc_howto_type *howto = NULL;
if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
{
@@ -1055,7 +1055,7 @@ elf_hppa_info_to_howto_rel (bfd *abfd,
{
unsigned int r_type = ELF_R_TYPE (elf_reloc->r_info);
unsigned int type = r_type;
- reloc_howto_type *howto;
+ reloc_howto_type *howto = NULL;
if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
{
--
Alan Modra
Australia Development Lab, IBM