aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-02-16 11:26:00 +0100
committerJan Beulich <jbeulich@suse.com>2021-02-16 11:26:00 +0100
commite6ca18783f3b202947e0583685beeae17bda5c3f (patch)
treea6c57b5f771adbd24def180e31beeed5a1e6109f /binutils/dwarf.c
parent7b54caddca1013d10219da097e08d4cd4db6b923 (diff)
downloadgdb-e6ca18783f3b202947e0583685beeae17bda5c3f.zip
gdb-e6ca18783f3b202947e0583685beeae17bda5c3f.tar.gz
gdb-e6ca18783f3b202947e0583685beeae17bda5c3f.tar.bz2
Dwarf: fix build with old gcc
4.3-ish warns about a possibly uninitialized variable, which results in a build failure due to -Werror.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
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)
{