mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
Fixes for a small number of compiler warnings
The ehdr_start_save variable does not need to be initialized. However, not initializing it will trigger a compiler warning when using older versions of GCC. Self-assignment unfortunately doesn't work for Clang as Clang has a warning similar to -Winit-self as part of -Wall. * emultempl/elf32.em (gld*_before_allocation): Zero-initialize the ehdr_start_save variable.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2015-04-01 Ed Schouten <ed@nuxi.nl>
|
||||||
|
|
||||||
|
* emultempl/elf32.em (gld*_before_allocation): Zero-initialize
|
||||||
|
the ehdr_start_save variable.
|
||||||
|
|
||||||
2015-03-31 Ed Schouten <ed@nuxi.nl>
|
2015-03-31 Ed Schouten <ed@nuxi.nl>
|
||||||
|
|
||||||
* Makefile.am (ALL_64_EMULATION_SOURCES): Add
|
* Makefile.am (ALL_64_EMULATION_SOURCES): Add
|
||||||
|
@ -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 = 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