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]
Other format: [Raw text]

Patch: fix monitor.c build problem


I am unable to build monitor.c with a recent gcc because of a
conflicting targ_ops declaration (both static and extern in same
compilation unit).  It looks like we can just delete the second
declaration.  Ok?


2003-09-22  Anthony Green  <green@redhat.com>

	* monitor.c (monitor_expect): Delete unused conflicting targ_ops
	declaration.


Index: gdb/monitor.c
===================================================================
RCS file: /cvs/uberbaum/gdb/monitor.c,v
retrieving revision 1.42
diff -c -u -p -r1.42 monitor.c
--- gdb/monitor.c	11 Jun 2003 13:16:28 -0000	1.42
+++ gdb/monitor.c	22 Sep 2003 14:23:57 -0000
@@ -521,7 +521,6 @@ monitor_expect (char *string, char *buf,
   char *p = string;
   int obuflen = buflen;
   int c;
-  extern struct target_ops *targ_ops;
 
   if (monitor_debug_p)
     {


-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.


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