From ab0462915cae36d5af2315540745f348603ad61f Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 14 Sep 2017 04:52:20 +0200 Subject: [PATCH] * dwarf.c (display_debug_names): Initialize hash_prev. gcc-4.3.0 warns that it may be used uninitialized. It takes a look and a half at the code to understand that it's false. Import from mainline. --- binutils/ChangeLog | 5 +++++ binutils/dwarf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index cffc49a66ea..1df592163eb 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2017-07-18 Hans-Peter Nilsson + + Import from mainline: + * dwarf.c (display_debug_names): Initialize hash_prev. + 2017-09-05 Nick Clifton Import from mainline: diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 419839b581e..3842ffdf118 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -7816,7 +7816,7 @@ display_debug_names (struct dwarf_section *section, void *file) printf (_("Used %zu of %lu buckets.\n"), buckets_filled, (unsigned long) bucket_count); - uint32_t hash_prev; + uint32_t hash_prev = 0; size_t hash_clash_count = 0; size_t longest_clash = 0; size_t this_length = 0; -- 2.47.3