From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 975AA398640E for ; Fri, 29 May 2020 20:09:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 975AA398640E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@gnu.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CDC95C359; Fri, 29 May 2020 22:09:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WVeGVafJGmE1; Fri, 29 May 2020 22:09:17 +0200 (CEST) Received: from function.home (unknown [IPv6:2a01:cb19:956:1b00:9eb6:d0ff:fe88:c3c7]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 98C03B99C; Fri, 29 May 2020 22:09:17 +0200 (CEST) Received: from samy by function.home with local (Exim 4.93) (envelope-from ) id 1jelJc-007psl-Uj; Fri, 29 May 2020 22:09:16 +0200 Date: Fri, 29 May 2020 22:09:16 +0200 From: Samuel Thibault To: gdb-patches@sourceware.org Cc: Thomas Schwinge , thomas@schwinge.name, bug-hurd@gnu.org Subject: [PATCH 5/5] hurd: remove unused variables Message-ID: <20200529200916.kuna2lpxvadtidzl@function> Mail-Followup-To: gdb-patches@sourceware.org, Thomas Schwinge , thomas@schwinge.name, bug-hurd@gnu.org References: <20200529200109.2qzmgxwtnm7fzfzs@function> <20200529200247.ldtwyly6jepcdpuc@function> <20200529200444.3mc4bw2nqep3d4oh@function> <20200529200752.qsjsbamgjekdqsp2@function> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200529200752.qsjsbamgjekdqsp2@function> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2020 20:09:20 -0000 gdb/ChangeLog: 2020-05-29 Samuel Thibault * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. (gnu_nat_target::find_memory_regions): Remove unused `old_address' variable. diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 3b438a9a43..78e9ab7f71 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2551,7 +2554,6 @@ gnu_xfer_auxv (gdb_byte *readbuf, const gdb_byte *writebuf, ? gnu_current_inf->task->port : 0) : 0); process_t proc; - int res; kern_return_t err; vm_address_t entry; ElfW(auxv_t) auxv[2]; @@ -2641,7 +2643,6 @@ gnu_nat_target::find_memory_regions (find_memory_region_ftype func, mach_port_t object_name; vm_offset_t offset; vm_size_t region_length = VM_MAX_ADDRESS - region_address; - vm_address_t old_address = region_address; err = vm_region (task, ®ion_address,