Remove unused variable in rust-lang.c
authorTom Tromey <tom@tromey.com>
Fri, 10 Feb 2017 20:09:23 +0000 (13:09 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 10 Feb 2017 20:09:23 +0000 (13:09 -0700)
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.

gdb/ChangeLog
gdb/rust-lang.c

index 1f885b71e3121f0231f1cd2c71adefa40fb77e43..dbee02a3fc2826fc82216f22669423aaf852680d 100644 (file)
@@ -1,3 +1,7 @@
+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
index 105b094e5743dc7586aff6045eb5afefec8480db..4977b0a1aa3f04b18e8e6179915b9898156cb75e 100644 (file)
@@ -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);
This page took 0.027574 seconds and 4 git commands to generate.