From patchwork Mon Mar 20 10:33:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 72083 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1135500wrt; Mon, 20 Mar 2023 03:33:41 -0700 (PDT) X-Google-Smtp-Source: AK7set8nKw+3NWPW6u/EotdZsxZy057glLcL+4tKmC2Xq7YabhxFaQHewrPvvCr3RxIPm8UTOZ8D X-Received: by 2002:a17:906:40d1:b0:932:748a:f0ea with SMTP id a17-20020a17090640d100b00932748af0eamr8455410ejk.63.1679308421518; Mon, 20 Mar 2023 03:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679308421; cv=none; d=google.com; s=arc-20160816; b=cm47WR8EoSN65v55ToqeI9/om0DgqumkdJ2gjS1Sge+4lWpyLNfba/nirv3hDWR8zz 7Jbt/k25cm8Tdc1k41FnMYuFzoBdpX5t6a+TBGTuwRg+LDZpFD/ljZHFc3kxho7c0EFW ToiND0XwWBty+lqmIvdrvsIlqjyF+4QPXUClfjUvFlXoW54nAk9n9G6fELjjqk+GgV+h PNNWPucx4aBVQUaDYgNsmsK+s0ryaxo002oWXMTPzwiyK/ACviWDzmbY5eRNHyLFGipe DqY2FBL8YCBFs9rStcoJy3WECQsHYXE3eELxdYmgH6F7eTNMPiMJe/48HuddgESTTG58 A2Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=qNJEV5nHXlXj/x7LUVIlg4jZLIFiYlqA3CcHvKZL37g=; b=R561edKyd6PWAUpAaYdSynCLxcfGtDdBdtnoBx3a6u5UVxPqNB34vEPiXoFnYrEs7q pWlJox03JJV/Ygr0ZfYdc75nJA6Y23T0xPmsCMQpVPUgqfJodRIqimF5az6Gz/rzrYXK KZOHiqihn77eKpS2t+5GZNAZrhmatEZ8zxAAZ8sWW7HUuyrSzqshJO4uv9YFXlhNhVcI NNnrQ38ItvB+1kDMRTd/oF18xIpvYoMYxHH7lE4nngiQRPOdKQjD2g8nLuRyZV9EpTTv SmiAPB3vOS/UYT79NvMMyJAgPwHXKKPn9Y5YPZRIwizsNhPkknN+/v0hHcFlnoeNEGfZ Rv3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VVhGtNm2; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id v6-20020a170906564600b00927175b923asi8426504ejr.893.2023.03.20.03.33.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 03:33:41 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=VVhGtNm2; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 51BA7385842A for ; Mon, 20 Mar 2023 10:33:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51BA7385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679308420; bh=qNJEV5nHXlXj/x7LUVIlg4jZLIFiYlqA3CcHvKZL37g=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=VVhGtNm2/AtwDJAQujdNt7IE2CB3strq3KODGouSuJOlYH+gOoMRO+KrVlQ6rSNqI apzsSWsNnpcxFKnSuWwdu6E7UGtYOLSkGpiDiV/TvP00Z+IkDFmHGA0AJXNXbtBErB 7c6mZUpdWhH2QNDt2lTyVnkprHUUB6J2XElqvcws= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id AAAB83858C74 for ; Mon, 20 Mar 2023 10:33:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AAAB83858C74 Received: by mail-pj1-x1036.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so11889209pjz.1 for ; Mon, 20 Mar 2023 03:33:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679308410; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qNJEV5nHXlXj/x7LUVIlg4jZLIFiYlqA3CcHvKZL37g=; b=Pj9p/q/D4KFY2Hpyahtr9y7MBu5RXQVUa0JOl7rj+h2uLjDABGpTD7SuGrI0bUciDs 7IMxIODErBYZ7OvSbOjBt/bWLpAPK+UqKVQDxTtifD6X5zqWJFCs54zMLgWUO7wXvAOC uMmvduNorQIUElcaO8Ga7XUq4DnJbceQOcMr9ip8kRyMnZG5j+/r+8wbEmMqIra+btPM yYh2SJwAMUZVoD3RCf9KhpS1KJMb9vBlv1szscwCFtAE/yW7PTc2PPOpmkgCieAGdQbS kEVO/dWrAx0XKnmkkzJzBSpYZIHC6x8WAAtgQynvH6SkQtzJmmievAwPJbzs2BG66ti1 8bFg== X-Gm-Message-State: AO0yUKXJNzncElYZ22Pnsmifqpp5lI5Yo/4P35dzJnG0sC337EElCI3b R4Pi/63NitrACSzw0gPVNT3kNZ+ydPw= X-Received: by 2002:a17:903:2345:b0:1a1:cc91:c43c with SMTP id c5-20020a170903234500b001a1cc91c43cmr4508842plh.45.1679308410409; Mon, 20 Mar 2023 03:33:30 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id x21-20020a170902ea9500b0019b9a075f1fsm6373351plb.80.2023.03.20.03.33.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Mar 2023 03:33:29 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 62A041142C79; Mon, 20 Mar 2023 21:03:27 +1030 (ACDT) Date: Mon, 20 Mar 2023 21:03:27 +1030 To: binutils@sourceware.org Subject: libctf: unused variable Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3035.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760882507359132843?= X-GMAIL-MSGID: =?utf-8?q?1760882507359132843?= * ctf-archive.c (arc_mmap_writeout): Delete unused variable. diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c index 54c49b3edbb..a8f76e4f42f 100644 --- a/libctf/ctf-archive.c +++ b/libctf/ctf-archive.c @@ -1249,7 +1249,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, const char **errmsg) { ssize_t len; - size_t acc = 0; char *data = (char *) header; ssize_t count = headersz; @@ -1272,7 +1271,6 @@ static int arc_mmap_writeout (int fd, void *header, size_t headersz, if (len == EINTR) continue; - acc += len; if (len == 0) /* EOF. */ break;