aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-29 22:22:49 -0600
committerTom Tromey <tom@tromey.com>2017-10-03 05:33:46 -0600
commit245ad7d373aef22013b347504d30d2306da1bdbf (patch)
tree3252c5ec9f692965cc86a1d962be66b08bff4d00 /gdb
parente05550d7a409a0637d87bef377e5d4b9a4b379ac (diff)
downloadgdb-245ad7d373aef22013b347504d30d2306da1bdbf.zip
gdb-245ad7d373aef22013b347504d30d2306da1bdbf.tar.gz
gdb-245ad7d373aef22013b347504d30d2306da1bdbf.tar.bz2
Remove unused declarations
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/mi/mi-main.c1
-rw-r--r--gdb/printcmd.c1
-rw-r--r--gdb/symfile.c1
4 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a4b8825..35c7e3c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
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.
(defaulted_query): Likewise.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 4a61efd..83b1fcf 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 de1f76c..a254e3a 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 c6d657b..f6bc378 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)