This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove unused declarations


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=245ad7d373aef22013b347504d30d2306da1bdbf

commit 245ad7d373aef22013b347504d30d2306da1bdbf
Author: Tom Tromey <tom@tromey.com>
Date:   Fri Sep 29 22:22:49 2017 -0600

    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.

Diff:
---
 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 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]