Remove some unused declarations
authorTom Tromey <tom@tromey.com>
Thu, 28 Sep 2017 02:43:27 +0000 (20:43 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 30 Sep 2017 02:46:45 +0000 (20:46 -0600)
This removes a couple of unused cleanup-related declarations.

gdb/ChangeLog
2017-09-29  Tom Tromey  <tom@tromey.com>

* main.c (captured_main_1): Remove unused declaration.
* spu-multiarch.c (parse_spufs_run): Remove unused declaration.

gdb/ChangeLog
gdb/main.c
gdb/spu-multiarch.c

index 6227a8e24477de51194d71fd48193b896e919a58..4fa2d4952d88f6124a12f5e6b65bd3319c07ca44 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-29  Tom Tromey  <tom@tromey.com>
+
+       * main.c (captured_main_1): Remove unused declaration.
+       * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
+
 2017-09-29  Tom Tromey  <tom@tromey.com>
 
        * symtab.c (search_symbols): Remove unused outer cleanup.
index 66ba75ba2104eaee43da3ab9265fe6a07437dfb9..f174a24ed53d29ef519e2c8382261aad3d854818 100644 (file)
@@ -498,8 +498,6 @@ captured_main_1 (struct captured_main_args *context)
   int save_auto_load;
   struct objfile *objfile;
 
-  struct cleanup *chain;
-
 #ifdef HAVE_SBRK
   /* Set this before constructing scoped_command_stats.  */
   lim_at_start = (char *) sbrk (0);
index ebca082d2e5c630d25bafcd2429f4c72197ddd65..a935a72c3058d5ccd9e89adb4cb0288e93be6064 100644 (file)
@@ -56,7 +56,6 @@ static int
 parse_spufs_run (ptid_t ptid, int *fd, CORE_ADDR *addr)
 {
   enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ());
-  struct cleanup *old_chain;
   struct gdbarch_tdep *tdep;
   struct regcache *regcache;
   gdb_byte buf[4];
This page took 0.034454 seconds and 4 git commands to generate.