From 0a79bef4f206d89214c48454a4302d6b6f8f68c0 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 18 Jul 2017 12:14:38 +0200 Subject: * 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. --- binutils/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/dwarf.c') diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 5f8922eb8a..f6fa157fed 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; -- cgit v1.2.3