$NetBSD: patch-mi_mi_main_c,v 1.1.1.1 2004/06/01 19:29:30 shannonjr Exp $

--- gdb/mi/mi-main.c.orig	2004-02-15 08:22:06.000000000 -0700
+++ gdb/mi/mi-main.c
@@ -817,7 +817,7 @@ mi_cmd_data_read_memory (char *command, 
   static struct mi_opt opts[] =
   {
     {"o", OFFSET_OPT, 1},
-    0
+    {0}
   };
 
   while (1)
@@ -1027,7 +1027,7 @@ mi_cmd_data_write_memory (char *command,
   static struct mi_opt opts[] =
   {
     {"o", OFFSET_OPT, 1},
-    0
+    {0}
   };
 
   while (1)
@@ -1192,7 +1192,6 @@ mi_execute_command (char *cmd, int from_
 {
   struct mi_parse *command;
   struct captured_mi_execute_command_args args;
-  struct ui_out *saved_uiout = uiout;
   int result;
 
   /* This is to handle EOF (^D). We just quit gdb. */
@@ -1220,7 +1219,6 @@ mi_execute_command (char *cmd, int from_
       if (args.action == EXECUTE_COMMAND_DISPLAY_ERROR || result < 0)
 	{
 	  char *msg = error_last_message ();
-	  struct cleanup *cleanup = make_cleanup (xfree, msg);
 	  /* The command execution failed and error() was called
 	     somewhere */
 	  fputs_unfiltered (command->token, raw_stdout);
