From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57246 invoked by alias); 12 Jul 2018 20:52:39 -0000 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 Received: (qmail 56801 invoked by uid 89); 12 Jul 2018 20:52:37 -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: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.228) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jul 2018 20:52:34 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 2478B400C95CC for ; Thu, 12 Jul 2018 15:52:32 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id diZRfRGb2aSeydiZdf4E4d; Thu, 12 Jul 2018 15:52:31 -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=Z+LrdW8l3uljl4NuVGzOARAR9GLRQv70t+VUxkQDomU=; b=SFZ6PjN32cC3ziNbIkMyA39kBA WeuW664Tymk1n5XxW7g62SQ2qWKAdozENgwgxPjhBGd0RBxbvujQ5R9nxe0rCAGH7iTGLfdHkUyfp tBkwGFUA3r89D8HC6iau8AGgV; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:49432 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fdiZR-001ZuD-HA; Thu, 12 Jul 2018 15:52:13 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 10/13] Remove unused declaration from value.c Date: Thu, 12 Jul 2018 20:52:00 -0000 Message-Id: <20180712205208.32646-11-tom@tromey.com> In-Reply-To: <20180712205208.32646-1-tom@tromey.com> References: <20180712205208.32646-1-tom@tromey.com> X-SW-Source: 2018-07/txt/msg00359.txt.bz2 This removes an unused declaration from value_fetch_lazy_bitfield, but leaves the call to check_typedef, because it may be called for effect. gdb/ChangeLog 2018-07-12 Tom Tromey * value.c (value_fetch_lazy_bitfield): Call check_typedef for effect. --- gdb/ChangeLog | 5 +++++ gdb/value.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/value.c b/gdb/value.c index 9f9e78ece2b..1747a62980f 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -3726,7 +3726,7 @@ 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)); + check_typedef (value_type (val)); struct value *parent = value_parent (val); if (value_lazy (parent)) -- 2.13.6