Remove unused declarations
authorTom Tromey <tom@tromey.com>
Sat, 30 Sep 2017 04:22:49 +0000 (22:22 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 3 Oct 2017 11:33:46 +0000 (05:33 -0600)
This removes some unused cleanup declarations.

2017-10-03  Tom Tromey  <tom@tromey.com>

* mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
declaration.
* printcmd.c (x_command): Remove unused declaration.
* symfile.c (symbol_file_command): Remove unused declaration.

gdb/ChangeLog
gdb/mi/mi-main.c
gdb/printcmd.c
gdb/symfile.c

index a4b88252b73c3513a51545cebe59fac0889bd10b..35c7e3cc629995e699aa3cd5c4e02da908588dc4 100644 (file)
@@ -1,3 +1,10 @@
+2017-10-03  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
+       declaration.
+       * printcmd.c (x_command): Remove unused declaration.
+       * symfile.c (symbol_file_command): Remove unused declaration.
+
 2017-10-03  Tom Tromey  <tom@tromey.com>
 
        * utils.c (internal_vproblem): Use std::string.
index 4a61efdc65c464269ba3bd9aa1fccf7b97ca48d3..83b1fcf53223b33592f1fd3d5bce296ac8394895 100644 (file)
@@ -2730,7 +2730,6 @@ mi_cmd_trace_frame_collected (const char *command, char **argv, int argc)
 
   /* Trace state variables.  */
   {
-    struct cleanup *cleanups;
     int tvar;
     int i;
 
index de1f76c2e33a76f1643159b268ced27b5e1b70be..a254e3ab574cde1d385bc00f428225e14afb6609 100644 (file)
@@ -1606,7 +1606,6 @@ static void
 x_command (char *exp, int from_tty)
 {
   struct format_data fmt;
-  struct cleanup *old_chain;
   struct value *val;
 
   fmt.format = last_format ? last_format : 'x';
index c6d657b668e90b82eba0696adbeda17844584392..f6bc378a0df2c01f93811e74951a02c4833052bc 100644 (file)
@@ -1629,7 +1629,6 @@ symbol_file_command (const char *args, int from_tty)
     {
       objfile_flags flags = OBJF_USERLOADED;
       symfile_add_flags add_flags = 0;
-      struct cleanup *cleanups;
       char *name = NULL;
 
       if (from_tty)
This page took 0.03871 seconds and 4 git commands to generate.