This is the mail archive of the gdb-patches@sources.redhat.com 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]

[patch] fix -Werror problems in mi-main.c


FYI,
	Andrew
Index: ChangeLog
Thu May 10 16:26:47 2001  Andrew Cagney  <cagney@b1.cygnus.com>

	* Makefile.in (mi-main.o): Compile with -Werror.

Index: mi/ChangeLog
Thu May 10 16:28:13 2001  Andrew Cagney  <cagney@b1.cygnus.com>

	* mi-main.c (mi_execute_async_cli_command): Always initialize
 	old_cleanups.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.84
diff -p -r1.84 Makefile.in
*** Makefile.in	2001/05/10 18:02:58	1.84
--- Makefile.in	2001/05/10 20:29:02
*************** mi-cmd-disas.o: $(srcdir)/mi/mi-cmd-disa
*** 2189,2195 ****
  mi-main.o: $(srcdir)/mi/mi-main.c $(defs_h) $(top_h) $(mi_cmds_h) $(ui_out_h) \
  		$(mi_console_h) $(mi_getopt_h) $(event_loop_h) $(event_top_h) \
  		$(mi_getopt_h) $(regcache_h)
! 	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(srcdir)/mi/mi-main.c
  mi-out.o: $(srcdir)/mi/mi-out.c $(defs_h) $(mi_out_h) $(ui_out_h)
  	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-out.c
  mi-console.o: $(srcdir)/mi/mi-console.c $(mi_out_h) $(defs_h)
--- 2189,2195 ----
  mi-main.o: $(srcdir)/mi/mi-main.c $(defs_h) $(top_h) $(mi_cmds_h) $(ui_out_h) \
  		$(mi_console_h) $(mi_getopt_h) $(event_loop_h) $(event_top_h) \
  		$(mi_getopt_h) $(regcache_h)
! 	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-main.c
  mi-out.o: $(srcdir)/mi/mi-out.c $(defs_h) $(mi_out_h) $(ui_out_h)
  	$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/mi/mi-out.c
  mi-console.o: $(srcdir)/mi/mi-console.c $(mi_out_h) $(defs_h)
Index: mi/mi-main.c
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-main.c,v
retrieving revision 1.12
diff -p -r1.12 mi-main.c
*** mi-main.c	2001/03/28 23:21:43	1.12
--- mi-main.c	2001/05/10 20:29:04
*************** mi_execute_async_cli_command (char *mi, 
*** 1272,1277 ****
--- 1272,1278 ----
        xasprintf (&run, "%s %s", mi, async_args);
        make_exec_cleanup (free, run);
        add_continuation (mi_exec_async_cli_cmd_continuation, NULL);
+       old_cleanups = NULL;
      }
    else
      {

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