$NetBSD: patch-af,v 1.1 2005/10/20 17:48:49 wiz Exp $ --- gdb/cli/cli-dump.c.orig 2004-02-28 11:04:37.000000000 -0700 +++ 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;