From patchwork Sat Jul 21 18:47:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 28563 Received: (qmail 20038 invoked by alias); 21 Jul 2018 18:47:33 -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 19676 invoked by uid 89); 21 Jul 2018 18:47:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.143.31) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Jul 2018 18:47:26 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 2491B6724 for ; Sat, 21 Jul 2018 13:47:25 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id gwubfh0AYPvAdgwubflWYU; Sat, 21 Jul 2018 13:47:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=D24kHBCq46KJZZsPBFtdAh5lAr8ihFpaWxEUsWNcGpQ=; b=kgQYaheE01zpj5eMxg5oJ2sWnq kDvr49KKoy60kIhMC5QmGr6OQlsol9fc5ey+iwhzM7v5Gje+fTKp3uDBgIbt8IX7pJ/z9cTW+Qsdf AtQkdDe3xAGiP63d6c3ueGjci; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:44394 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fgwua-002Auc-Uk; Sat, 21 Jul 2018 13:47:25 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA v2 10/13] Remove unused declaration from value.c Date: Sat, 21 Jul 2018 12:47:17 -0600 Message-Id: <20180721184720.3263-11-tom@tromey.com> In-Reply-To: <20180721184720.3263-1-tom@tromey.com> References: <20180721184720.3263-1-tom@tromey.com> This removes an unused declaration from value_fetch_lazy_bitfield. Because it is not completely clear if the check_typedef call is needed somewhere beneath this function, this is broken out into a separate patch. gdb/ChangeLog 2018-07-21 Tom Tromey * value.c (value_fetch_lazy_bitfield): Remove unused variable. --- gdb/ChangeLog | 4 ++++ gdb/value.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/value.c b/gdb/value.c index 9f9e78ece2b..af635ba5bc3 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3726,7 +3726,6 @@ value_fetch_lazy_bitfield (struct value *val) per bitfield. It would be even better to read only the containing word, but we have no way to record that just specific bits of a value have been fetched. */ - struct type *type = check_typedef (value_type (val)); struct value *parent = value_parent (val); if (value_lazy (parent))