mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Yet another warning fix
Older compilers that warn wrongly will just need -Wno-error. No way am I going to init every single field, then have to edit this code whenever bfd_link_hash_entry changes. Another option, making the struct static, isn't very nice since it means larger binaries and worse code. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't init ehdr_start_save.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-04-01 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
|
||||||
|
init ehdr_start_save.
|
||||||
|
|
||||||
2015-04-01 Alan Modra <amodra@gmail.com>
|
2015-04-01 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
|
* Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
|
||||||
|
@ -1412,7 +1412,7 @@ gld${EMULATION_NAME}_before_allocation (void)
|
|||||||
asection *sinterp;
|
asection *sinterp;
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
struct elf_link_hash_entry *ehdr_start = NULL;
|
struct elf_link_hash_entry *ehdr_start = NULL;
|
||||||
struct bfd_link_hash_entry ehdr_start_save = {};
|
struct bfd_link_hash_entry ehdr_start_save;
|
||||||
|
|
||||||
if (is_elf_hash_table (link_info.hash))
|
if (is_elf_hash_table (link_info.hash))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user