elf-hppa.h warning fix
* elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL. (elf_hppa_info_to_howto_rel): Likewise.
This commit is contained in:
parent
89f60df20b
commit
0e8452bb22
@ -1,3 +1,8 @@
|
|||||||
|
2018-04-05 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
|
||||||
|
(elf_hppa_info_to_howto_rel): Likewise.
|
||||||
|
|
||||||
2018-04-04 Maciej W. Rozycki <macro@mips.com>
|
2018-04-04 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
* elf-hppa.h (elf_hppa_info_to_howto): Also return
|
* elf-hppa.h (elf_hppa_info_to_howto): Also return
|
||||||
|
@ -1027,7 +1027,7 @@ elf_hppa_info_to_howto (bfd *abfd,
|
|||||||
{
|
{
|
||||||
unsigned int r_type = ELF32_R_TYPE (elf_reloc->r_info);
|
unsigned int r_type = ELF32_R_TYPE (elf_reloc->r_info);
|
||||||
unsigned int type = r_type;
|
unsigned int type = r_type;
|
||||||
reloc_howto_type *howto;
|
reloc_howto_type *howto = NULL;
|
||||||
|
|
||||||
if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
|
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 r_type = ELF_R_TYPE (elf_reloc->r_info);
|
||||||
unsigned int type = r_type;
|
unsigned int type = r_type;
|
||||||
reloc_howto_type *howto;
|
reloc_howto_type *howto = NULL;
|
||||||
|
|
||||||
if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
|
if (r_type < (unsigned int) R_PARISC_UNIMPLEMENTED)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user