diff options
author | Alan Modra <amodra@gmail.com> | 2016-09-26 18:04:18 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-09-26 18:04:18 +0930 |
commit | 2422813015a1601d0484afef73a94753ffc07a1d (patch) | |
tree | d0b26a9467ec56a6ebc656f02b24148e6ac77991 /gold/output.cc | |
parent | 7358f4cbaf3c6fafbbbc9703a5e2884470643bfa (diff) | |
download | gdb-2422813015a1601d0484afef73a94753ffc07a1d.zip gdb-2422813015a1601d0484afef73a94753ffc07a1d.tar.gz gdb-2422813015a1601d0484afef73a94753ffc07a1d.tar.bz2 |
[GOLD] warning fixes
* aarch64.cc (Target_aarch64::is_erratum_835769_sequence): Avoid
compiler warning.
* output.cc (Output_segment::set_section_addresses): Likewise.
Diffstat (limited to 'gold/output.cc')
-rw-r--r-- | gold/output.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/output.cc b/gold/output.cc index 0a9e58f..8e043d7 100644 --- a/gold/output.cc +++ b/gold/output.cc @@ -4398,7 +4398,7 @@ Output_segment::set_section_addresses(const Target* target, this->offset_ = orig_off; off_t off = 0; - uint64_t ret; + uint64_t ret = 0; for (int i = 0; i < static_cast<int>(ORDER_MAX); ++i) { if (i == static_cast<int>(ORDER_RELRO_LAST)) |