From e6ca18783f3b202947e0583685beeae17bda5c3f Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 16 Feb 2021 11:26:00 +0100 Subject: Dwarf: fix build with old gcc 4.3-ish warns about a possibly uninitialized variable, which results in a build failure due to -Werror. --- binutils/ChangeLog | 4 ++++ binutils/dwarf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 0edfcbe..32c97b5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2021-02-16 Jan Beulich + + * dwarf.c (process_debug_info): Initialize "dwo_id". + 2021-02-15 Alan Modra * objdump.c (load_specific_debug_section): Don't call diff --git a/binutils/dwarf.c b/binutils/dwarf.c index c863acf..a69d110 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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) { -- cgit v1.1