[RFA 10/13] Remove unused declaration from value.c

Tom Tromey
2018-07-12T20:52:39Z

This removes an unused declaration from value_fetch_lazy_bitfield, but
leaves the call to check_typedef, because it may be called for effect.

gdb/ChangeLog
2018-07-12 Tom Tromey <tom@tromey.com>

* value.c (value_fetch_lazy_bitfield): Call check_typedef for
effect.
---
gdb/ChangeLog | 5 +++++
gdb/value.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/value.c b/gdb/value.c
index 9f9e78ece2b..1747a62980f 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -3726,7 +3726,7 @@ value_fetch_lazy_bitfield (struct value *val)
per bitfield. It would be even better to read only the containing
word, but we have no way to record that just specific bits of a
value have been fetched. */
- struct type *type = check_typedef (value_type (val));
+ check_typedef (value_type (val));
struct value *parent = value_parent (val);

if (value_lazy (parent))
--
2.13.6