From: Tom Tromey Date: Sat, 30 Sep 2017 04:22:49 +0000 (-0600) Subject: Remove unused declarations X-Git-Tag: users/gbenson/thread_db-test/2017-11-22~665 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=245ad7d373aef22013b347504d30d2306da1bdbf;p=thirdparty%2Fbinutils-gdb.git 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. --- 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)