Remove unused declaration from value.c
authorTom Tromey <tom@tromey.com>
Sun, 8 Jul 2018 18:18:19 +0000 (12:18 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 22 Jul 2018 19:20:05 +0000 (13:20 -0600)
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.

gdb/ChangeLog
gdb/value.c

index a0a388f..511ac9f 100644 (file)
@@ -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>
index 9f9e78e..af635ba 100644 (file)
@@ -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))