aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
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)