From: Tom Tromey Date: Fri, 10 Feb 2017 20:09:23 +0000 (-0700) Subject: Remove unused variable in rust-lang.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b145e37a29cd96e567293dc69c0fd4f8af243b9;p=binutils-gdb.git Remove unused variable in rust-lang.c I found another unused "cleanup" local variable, this time in rust-lang.c. This patch removes it. Committing as obvious. gdb/ChangeLog 2017-02-10 Tom Tromey * rust-lang.c (rust_get_disr_info): Remove unused variable. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1f885b71e31..dbee02a3fc2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-02-10 Tom Tromey + + * rust-lang.c (rust_get_disr_info): Remove unused variable. + 2017-02-10 Tom Tromey * python/py-value.c (valpy_richcompare_throw): Remove unnecessary diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 105b094e574..4977b0a1aa3 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -124,7 +124,6 @@ rust_get_disr_info (struct type *type, const gdb_byte *valaddr, struct disr_info ret; struct type *disr_type; struct value_print_options opts; - struct cleanup *cleanup; const char *name_segment; get_no_prettyformat_print_options (&opts);