elf-reader, ir: Fix compilation on GCC 4.8.5
* src/abg-elf-reader.cc (reader::initialize): Use older-style initialization to keep the old lady happy. * src/abg-ir-priv.h (canonicalize_types): Avoid using type deduction in this context to keep the old lady happy. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
2f61188d43
commit
831b59a83f
|
@ -311,7 +311,7 @@ struct reader::priv
|
|||
dt_needed.clear();
|
||||
symt.reset();
|
||||
debug_info_root_paths = debug_info_roots;
|
||||
offline_callbacks = {};
|
||||
memset(&offline_callbacks, 0, sizeof(offline_callbacks));
|
||||
dwfl_handle.reset();
|
||||
elf_module = nullptr;
|
||||
dwarf_handle = nullptr;
|
||||
|
|
|
@ -1330,8 +1330,10 @@ canonicalize_types(const input_iterator& begin,
|
|||
if (begin == end)
|
||||
return;
|
||||
|
||||
int i;
|
||||
input_iterator t;
|
||||
// First, let's compute the canonical type of this type.
|
||||
for (auto t = begin, i = 0; t != end; ++t, ++i)
|
||||
for (t = begin,i = 0; t != end; ++t, ++i)
|
||||
{
|
||||
if (deref(t)->get_environment().priv_->do_log())
|
||||
std::cerr << "#" << std::dec << i << " ";
|
||||
|
|
Loading…
Reference in New Issue