This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove unused variable in rust-lang.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0b145e37a29cd96e567293dc69c0fd4f8af243b9

commit 0b145e37a29cd96e567293dc69c0fd4f8af243b9
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Feb 10 13:09:23 2017 -0700

    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  <tom@tromey.com>
    
    	* rust-lang.c (rust_get_disr_info): Remove unused variable.

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/rust-lang.c | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1f885b7..dbee02a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-02-10  Tom Tromey  <tom@tromey.com>
 
+	* rust-lang.c (rust_get_disr_info): Remove unused variable.
+
+2017-02-10  Tom Tromey  <tom@tromey.com>
+
 	* python/py-value.c (valpy_richcompare_throw): Remove unnecessary
 	"cleanup" local.
 	* python/py-type.c (typy_legacy_template_argument): Remove
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index 105b094..4977b0a 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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]