From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128674 invoked by alias); 21 Jul 2016 11:38:07 -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 128613 invoked by uid 89); 21 Jul 2016 11:38:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=from_tty X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 21 Jul 2016 11:38:01 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D082C7F40B for ; Thu, 21 Jul 2016 11:37:59 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6LBbviH027702 for ; Thu, 21 Jul 2016 07:37:59 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 2/2] Remove unused variable in windows-nat.c Date: Thu, 21 Jul 2016 11:38:00 -0000 Message-Id: <1469101077-18220-2-git-send-email-palves@redhat.com> In-Reply-To: <7797fc3a-9651-3448-2def-3bc5b0c5cf55@redhat.com> References: <7797fc3a-9651-3448-2def-3bc5b0c5cf55@redhat.com> X-SW-Source: 2016-07/txt/msg00246.txt.bz2 Leave the call for side effects. gdb/ChangeLog: yyyy-mm-dd Pedro Alves * windows-nat.c (handle_exception): Remove "th". --- gdb/windows-nat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 149403a..c95dc9a 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1014,13 +1014,12 @@ display_selectors (char * args, int from_tty) static int handle_exception (struct target_waitstatus *ourstatus) { - windows_thread_info *th; DWORD code = current_event.u.Exception.ExceptionRecord.ExceptionCode; ourstatus->kind = TARGET_WAITKIND_STOPPED; /* Record the context of the current thread. */ - th = thread_rec (current_event.dwThreadId, -1); + thread_rec (current_event.dwThreadId, -1); switch (code) { -- 2.5.5