Dwarf: fix build with old gcc

4.3-ish warns about a possibly uninitialized variable, which results in
a build failure due to -Werror.
This commit is contained in:
Jan Beulich 2021-02-16 11:26:00 +01:00
parent 7b54caddca
commit e6ca18783f
2 changed files with 5 additions and 1 deletions

View file

@ -3693,7 +3693,7 @@ process_debug_info (struct dwarf_section * section,
SAFE_BYTE_GET_AND_INC (compunit.cu_pointer_size, hdrptr, 1, end);
bfd_boolean do_dwo_id = FALSE;
uint64_t dwo_id;
uint64_t dwo_id = 0;
if (compunit.cu_unit_type == DW_UT_split_compile
|| compunit.cu_unit_type == DW_UT_skeleton)
{