From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4320 invoked by alias); 29 Feb 2012 16:17:37 -0000 Received: (qmail 4312 invoked by uid 22791); 29 Feb 2012 16:17:35 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Feb 2012 16:17:22 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1TGHLEh011835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 29 Feb 2012 11:17:22 -0500 Received: from hit-nxdomain.opendns.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1TGHK3u003765 for ; Wed, 29 Feb 2012 11:17:21 -0500 Subject: [PATCH 03/14] -Wmissing-prototypes: Garbage collect inferior.c:delete_threads_of_inferior. To: gdb-patches@sourceware.org From: Pedro Alves Date: Wed, 29 Feb 2012 16:17:00 -0000 Message-ID: <20120229161719.23918.44780.stgit@hit-nxdomain.opendns.com> In-Reply-To: <20120229161628.23918.51354.stgit@hit-nxdomain.opendns.com> References: <20120229161628.23918.51354.stgit@hit-nxdomain.opendns.com> User-Agent: StGit/0.15 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00705.txt.bz2 $ make WERROR_CFLAGS="-Wmissing-prototypes" inferior.o 1>/dev/null ../../src/gdb/inferior.c:182:1: warning: no previous prototype for ‘delete_threads_of_inferior’ [-Wmissing-prototypes] ... Turns out the function isn't used anywhere. 2012-02-29 Pedro Alves * inferior.c (delete_threads_of_inferior): Delete. --- gdb/inferior.c | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/gdb/inferior.c b/gdb/inferior.c index 51748a9..327385a 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -178,25 +178,6 @@ delete_thread_of_inferior (struct thread_info *tp, void *data) return 0; } -void -delete_threads_of_inferior (int pid) -{ - struct inferior *inf; - struct delete_thread_of_inferior_arg arg; - - for (inf = inferior_list; inf; inf = inf->next) - if (inf->pid == pid) - break; - - if (!inf) - return; - - arg.pid = pid; - arg.silent = 1; - - iterate_over_threads (delete_thread_of_inferior, &arg); -} - /* If SILENT then be quiet -- don't announce a inferior death, or the exit of its threads. */