From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22858 invoked by alias); 22 Sep 2003 14:28:58 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22849 invoked from network); 22 Sep 2003 14:28:56 -0000 Received: from unknown (HELO mx2.redhat.com) (66.187.237.31) by sources.redhat.com with SMTP; 22 Sep 2003 14:28:56 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id h8MEBuO15809 for ; Mon, 22 Sep 2003 10:11:56 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h8MESsD17058 for ; Mon, 22 Sep 2003 10:28:54 -0400 Received: from [192.168.0.2] (vpn26-2.sfbay.redhat.com [172.16.26.2]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h8MESrw05141 for ; Mon, 22 Sep 2003 07:28:53 -0700 Subject: Patch: fix monitor.c build problem From: Anthony Green To: gdb-patches@gcc.gnu.org Content-Type: text/plain Organization: Red Hat, Inc. Message-Id: <1064240932.3570.206.camel@escape> Mime-Version: 1.0 Date: Mon, 22 Sep 2003 14:28:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00460.txt.bz2 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 * 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 Red Hat, Inc.