From patchwork Sun Oct 1 04:06:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 23265 Received: (qmail 100141 invoked by alias); 1 Oct 2017 04:06:54 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 100109 invoked by uid 89); 1 Oct 2017 04:06:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:2017100, H*RU:sk:outboun, Hx-spam-relays-external:sk:outboun, H*Ad:U*tom X-HELO: outbound-ss-1812.hostmonster.com Received: from gproxy1-pub.mail.unifiedlayer.com (HELO outbound-ss-1812.hostmonster.com) (69.89.25.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 01 Oct 2017 04:06:52 +0000 Received: from cmgw4 (cmgw5 [10.0.90.85]) by gproxy1.mail.unifiedlayer.com (Postfix) with ESMTP id 41909175A77 for ; Sat, 30 Sep 2017 22:06:50 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id G46n1w0082f2jeq0146qVC; Sat, 30 Sep 2017 22:06:50 -0600 X-Authority-Analysis: v=2.2 cv=OZLoNlbY c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=2JCJgTwv5E4A:10 a=zstS-IiYAAAA:8 a=OZsgq4dyWg627ncowpMA:9 a=4G6NA9xxw8l3yy4pmD5M:22 Received: from 75-166-0-208.hlrn.qwest.net ([75.166.0.208]:43148 helo=pokyo.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1dyVWh-002l9R-0z; Sat, 30 Sep 2017 22:06:47 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 4/8] Remove unused declarations Date: Sat, 30 Sep 2017 22:06:39 -0600 Message-Id: <20171001040643.25162-5-tom@tromey.com> In-Reply-To: <20171001040643.25162-1-tom@tromey.com> References: <20171001040643.25162-1-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1dyVWh-002l9R-0z X-Source-Sender: 75-166-0-208.hlrn.qwest.net (pokyo.Home) [75.166.0.208]:43148 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes This removes some unused cleanup declarations. 2017-09-30 Tom Tromey * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused declaration. * printcmd.c (x_command): Remove unused declaration. * symfile.c (symbol_file_command): Remove unused declaration. --- gdb/ChangeLog | 7 +++++++ gdb/mi/mi-main.c | 1 - gdb/printcmd.c | 1 - gdb/symfile.c | 1 - 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6744ac0..ba841f8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2017-09-30 Tom Tromey + * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused + declaration. + * printcmd.c (x_command): Remove unused declaration. + * symfile.c (symbol_file_command): Remove unused declaration. + +2017-09-30 Tom Tromey + * utils.c (internal_vproblem): Use std::string. (defaulted_query): Likewise. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 4a61efd..83b1fcf 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2730,7 +2730,6 @@ mi_cmd_trace_frame_collected (const char *command, char **argv, int argc) /* Trace state variables. */ { - struct cleanup *cleanups; int tvar; int i; diff --git a/gdb/printcmd.c b/gdb/printcmd.c index de1f76c..a254e3a 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1606,7 +1606,6 @@ static void x_command (char *exp, int from_tty) { struct format_data fmt; - struct cleanup *old_chain; struct value *val; fmt.format = last_format ? last_format : 'x'; diff --git a/gdb/symfile.c b/gdb/symfile.c index c6d657b..f6bc378 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1629,7 +1629,6 @@ symbol_file_command (const char *args, int from_tty) { objfile_flags flags = OBJF_USERLOADED; symfile_add_flags add_flags = 0; - struct cleanup *cleanups; char *name = NULL; if (from_tty)