* 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.
This commit is contained in:
Hans-Peter Nilsson 2017-07-18 12:14:38 +02:00
parent 25bda061bf
commit 0a79bef4f2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
* dwarf.c (display_debug_names): Initialize hash_prev.
2017-07-17 Nick Clifton <nickc@redhat.com>
PR 21433

View File

@ -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;