$NetBSD: patch-ad,v 1.2 2005/11/13 14:16:05 shannonjr Exp $

--- gdb/cli/cli-dump.c.orig	2004-10-20 17:12:51.000000000 -0600
+++ gdb/cli/cli-dump.c
@@ -72,7 +72,6 @@ scan_expression_with_cleanup (char **cmd
 static void
 do_fclose_cleanup (void *arg)
 {
-  FILE *file = arg;
   fclose (arg);
 }
 
@@ -233,7 +232,6 @@ dump_memory_to_file (char *cmd, char *mo
   void *buf;
   char *lo_exp;
   char *hi_exp;
-  int len;
 
   /* Open the file.  */
   filename = scan_filename_with_cleanup (&cmd, NULL);
@@ -521,7 +519,6 @@ static void
 restore_binary_file (char *filename, struct callback_data *data)
 {
   FILE *file = fopen_with_cleanup (filename, FOPEN_RB);
-  int status;
   char *buf;
   long len;
 
