aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2017-07-18 12:14:38 +0200
committerHans-Peter Nilsson <hp@bitrange.com>2017-07-18 12:14:38 +0200
commit0a79bef4f206d89214c48454a4302d6b6f8f68c0 (patch)
tree9f60d6178604db3e46da549648e8c4092798f0ee /binutils/dwarf.c
parent25bda061bfe001db0b10a99e289293cadad5a0c9 (diff)
downloadgdb-0a79bef4f206d89214c48454a4302d6b6f8f68c0.zip
gdb-0a79bef4f206d89214c48454a4302d6b6f8f68c0.tar.gz
gdb-0a79bef4f206d89214c48454a4302d6b6f8f68c0.tar.bz2
* 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.
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 5f8922e..f6fa157 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;