diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 2017-07-18 12:14:38 +0200 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2017-07-18 12:14:38 +0200 |
commit | 0a79bef4f206d89214c48454a4302d6b6f8f68c0 (patch) | |
tree | 9f60d6178604db3e46da549648e8c4092798f0ee /binutils/dwarf.c | |
parent | 25bda061bfe001db0b10a99e289293cadad5a0c9 (diff) | |
download | gdb-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.c | 2 |
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; |