diff options
author | Tom Tromey <tom@tromey.com> | 2018-07-08 12:18:19 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-22 13:20:05 -0600 |
commit | 8c8807f43924ec0f936b9bb59fd73d8fa4956e9e (patch) | |
tree | 772c4580eba5ba4a8f8e7ccf05a9d54de92299bd /gdb | |
parent | c486b6106a31e442cba13c74a103aad8463bbd20 (diff) | |
download | binutils-8c8807f43924ec0f936b9bb59fd73d8fa4956e9e.zip binutils-8c8807f43924ec0f936b9bb59fd73d8fa4956e9e.tar.gz binutils-8c8807f43924ec0f936b9bb59fd73d8fa4956e9e.tar.bz2 |
Remove unused declaration from value.c
This removes an unused declaration from value_fetch_lazy_bitfield.
Because it is not completely clear if the check_typedef call is needed
somewhere beneath this function, this is broken out into a separate
patch.
gdb/ChangeLog
2018-07-22 Tom Tromey <tom@tromey.com>
* value.c (value_fetch_lazy_bitfield): Remove unused variable.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/value.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a0a388f..511ac9f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2018-07-22 Tom Tromey <tom@tromey.com> + * value.c (value_fetch_lazy_bitfield): Remove unused variable. + +2018-07-22 Tom Tromey <tom@tromey.com> + * symfile.c (reread_symbols): Notify iter, not objfile. 2018-07-22 Tom Tromey <tom@tromey.com> diff --git a/gdb/value.c b/gdb/value.c index 9f9e78e..af635ba 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3726,7 +3726,6 @@ 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)); struct value *parent = value_parent (val); if (value_lazy (parent)) |