aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-30 14:31:15 +0930
committerAlan Modra <amodra@gmail.com>2020-09-30 14:31:15 +0930
commite37c930f9e4ad20901493608f276011999efdf8f (patch)
treed1fcb4cb37bde1bc524af2c3cc479c77cdff0014 /gas/symbols.c
parent529908cbd0afc2524044b7df3626c09d0bdae12d (diff)
downloadgdb-e37c930f9e4ad20901493608f276011999efdf8f.zip
gdb-e37c930f9e4ad20901493608f276011999efdf8f.tar.gz
gdb-e37c930f9e4ad20901493608f276011999efdf8f.tar.bz2
gcc-4.4.7 warning fixes
* config/obj-elf.c (obj_elf_change_section): Rename variable to avoid shadowing warning. * symbols.c (symbol_entry_find): Init all symbol_flags fields.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index d608088..26dd84b 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -196,7 +196,8 @@ static void *
symbol_entry_find (htab_t table, const char *name)
{
hashval_t hash = htab_hash_string (name);
- symbol_entry_t needle = { { { 0 }, hash, name, 0, 0, 0 } };
+ symbol_entry_t needle = { { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
+ hash, name, 0, 0, 0 } };
return htab_find_with_hash (table, &needle, hash);
}