diff options
author | Alan Modra <amodra@gmail.com> | 2019-08-10 12:28:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-08-10 17:16:16 +0930 |
commit | 988de25b366c74cd62e35f3d5cf63086a964c7aa (patch) | |
tree | a1ec5980fb59bb8b0ed849284da047a7a28ba9f0 /ld/lexsup.c | |
parent | 36983a93bb338b7cdd6f7d6f9f91dc9ce9815b4e (diff) | |
download | gdb-988de25b366c74cd62e35f3d5cf63086a964c7aa.zip gdb-988de25b366c74cd62e35f3d5cf63086a964c7aa.tar.gz gdb-988de25b366c74cd62e35f3d5cf63086a964c7aa.tar.bz2 |
stat_alloc casts
Casts from a void* just clutter the source.
* ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
(exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
stat_alloc return value.
* ldlang.c (new_statement, new_afile, sort_def_symbol),
(lang_memory_region_lookup, lang_memory_region_alias),
(ldlang_add_undef, ldlang_add_require_defined, insert_pad),
(lang_add_gc_name, lang_new_phdr): Likewise.
* lexsup.c (set_segment_start): Likewise.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index d4f1981..1c15ac2 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -1734,7 +1734,7 @@ set_segment_start (const char *section, char *valstr) } /* There was no existing value so we must create a new segment entry. */ - seg = (segment_type *) stat_alloc (sizeof (*seg)); + seg = stat_alloc (sizeof (*seg)); seg->name = name; seg->value = val; seg->used = FALSE; |