From 245ad7d373aef22013b347504d30d2306da1bdbf Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 29 Sep 2017 22:22:49 -0600 Subject: [PATCH] Remove unused declarations This removes some unused cleanup declarations. 2017-10-03 Tom Tromey * 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 | 7 +++++++ gdb/mi/mi-main.c | 1 - gdb/printcmd.c | 1 - gdb/symfile.c | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4b88252b73..35c7e3cc629 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2017-10-03 Tom Tromey + + * 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 * utils.c (internal_vproblem): Use std::string. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 4a61efdc65c..83b1fcf5322 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -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; diff --git a/gdb/printcmd.c b/gdb/printcmd.c index de1f76c2e33..a254e3ab574 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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'; diff --git a/gdb/symfile.c b/gdb/symfile.c index c6d657b668e..f6bc378a0df 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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) -- 2.30.2