diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-17 09:52:08 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-17 09:52:08 -0400 |
commit | 3e6188349fbf16e9da69837e5e1211537805e422 (patch) | |
tree | 92f29518cbe19ca0e887df33ff55811154f53012 /gdb/value.c | |
parent | fe10fe3131e688d528877706db1e98e15434c0dc (diff) | |
download | gdb-3e6188349fbf16e9da69837e5e1211537805e422.zip gdb-3e6188349fbf16e9da69837e5e1211537805e422.tar.gz gdb-3e6188349fbf16e9da69837e5e1211537805e422.tar.bz2 |
value.c: Remove unused variables
Obvious patch to remove unused local variables (found by adding
-Wunused). I didn't touch this one in value_fetch_lazy, because
check_typedef could have a desired side-effect.
3743 struct type *type = check_typedef (value_type (val));
gdb/ChangeLog:
* value.c (release_value): Remove unused variable.
(record_latest_value): Likewise.
(access_value_history): Likewise.
(preserve_values): Likewise.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/value.c b/gdb/value.c index eb28121..aa6ca43 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1614,8 +1614,6 @@ value_free_to_mark (const struct value *mark) value_ref_ptr release_value (struct value *val) { - struct value *v; - if (val == nullptr) return value_ref_ptr (); @@ -1789,8 +1787,6 @@ set_value_component_location (struct value *component, int record_latest_value (struct value *val) { - int i; - /* We don't want this value to have anything to do with the inferior anymore. In particular, "set $1 = 50" should not affect the variable from which the value was taken, and fast watchpoints should be able to assume that @@ -1812,7 +1808,6 @@ record_latest_value (struct value *val) struct value * access_value_history (int num) { - int i; int absnum = num; if (absnum <= 0) @@ -2507,7 +2502,6 @@ preserve_values (struct objfile *objfile) { htab_t copied_types; struct internalvar *var; - int i; /* Create the hash table. We allocate on the objfile's obstack, since it is soon to be deleted. */ |