diff options
Diffstat (limited to 'gdb/rust-exp.y')
-rw-r--r-- | gdb/rust-exp.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y index aeb6058..456ffe5 100644 --- a/gdb/rust-exp.y +++ b/gdb/rust-exp.y @@ -968,17 +968,15 @@ super_name (const struct rust_op *ident, unsigned int n_supers) int i; int len; VEC (int) *offsets = NULL; - unsigned int current_len, previous_len; + unsigned int current_len; struct cleanup *cleanup; cleanup = make_cleanup (VEC_cleanup (int), &offsets); current_len = cp_find_first_component (scope); - previous_len = 0; while (scope[current_len] != '\0') { VEC_safe_push (int, offsets, current_len); gdb_assert (scope[current_len] == ':'); - previous_len = current_len; /* The "::". */ current_len += 2; current_len += cp_find_first_component (scope |