From nobody Tue Jun 20 16:29:33 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QlsXt2llWz4gJbl; Tue, 20 Jun 2023 16:29:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QlsXs6nt0z4LZf; Tue, 20 Jun 2023 16:29:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pWCNnS3ZpU2ipXjwIRPHX8h+H6T/3S2qXYIU1KPsLaA=; b=hCb159q7XCXshcoWYy9nLZ3G+nYEQeV8ARfyv2iHNr9oaGS0VpSi3pU+AGVjRzzjaj1fr4 NZUQ72SfcsbBkJi2UAwzTQKzqodWexUPTauefYs0v9hwPU4xvO6bDv/cVXYXKlBablphf7 MQ3sWFaemMz4fgwca0lC8AYoe91lJQLJBsca6cdV9QokxxgmHIgnWNjegLMau0ie3va44V 8R/wfGlY1D4HlDIUsqFG7YJ49mreBe9YdzSCSwoVPTu74oTtDPOlWwMiN8+87UVaO5rmYu /pyIxFs86y+AJkPCHdvvATm5lzfG7QxJHx21U+UCnOgedyKJ5APDbpxKPc4/pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pWCNnS3ZpU2ipXjwIRPHX8h+H6T/3S2qXYIU1KPsLaA=; b=LF6aK5RAKhu1kRzoOUU0nMg8mG63HoHCyXsBKezBoWnG67NcZxSMV+Z7DFBQ+w8mxMPub+ AGxSa+WikvGq8FvzVqVjUhN3KYwbJuOWUF/P77ESd689YpN8CrLDs3XB3FqIVRKRDNxh2a DO8WjlEmEF1Om1sDD3PxXDmNNAwnhnTUN53oNEj5WRSqqA3WsbF5howyLGYFyvCXCCHTEo 5L4L69f5SHpSyuiti2nX47Uf+2D2kUau3rWw5R6yTtMM3jG8k6Akm/4hOTW7GRV9KpD5VY mRTjAXQeMfvC/BlP8Nadx1vtcteobW67DejpvEh7dE/l+MM4GkiZ2bSimNNtzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278574; a=rsa-sha256; cv=none; b=VHbXjQQd9JLncnufSHuOmAkOGaMPA8CfWw3p0A/dRYziA/Dj+wTPdg6r/dsfpYpxknXHij pH0yH/3ehkGz65uUrd4Q9cg8HEX0aXLhkK9nsxgD/QpIE6f1a5j53Y9r0W510Xp0ZH4EHV 0AFxKeK4GCGjBPKOyo6JbgMLX6Sr0YKzp9JG2iv65quPKb2eTHas36LNrbDoWlHIz0rbb6 e2QTe91aA1FZkFZ0JgW5UfsVzx7ojpfDb/OAgFHqx2Ld9QkJ6bKI9KgzLkgZIjAMLteTYM l+1e9JxGkfH7GpdMXf3HAOmqwB7Qn81Xh7VkuF9tIZqUkKhL3ORv27KdFXAdnA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QlsXs5dyWz166X; Tue, 20 Jun 2023 16:29:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35KGTXJH045368; Tue, 20 Jun 2023 16:29:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTXi6045362; Tue, 20 Jun 2023 16:29:33 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:33 GMT Message-Id: <202306201629.35KGTXi6045362@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e8f740fbc261 - main - diff: Fully comment out the jackpot variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8f740fbc261b953ea4f22b80846f55c54225710 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e8f740fbc261b953ea4f22b80846f55c54225710 commit e8f740fbc261b953ea4f22b80846f55c54225710 Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:29:00 +0000 diff: Fully comment out the jackpot variable. This fixes a set but unused warning. --- usr.bin/diff/diffreg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index 971f640fa05f..d9b08aece64a 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -682,14 +682,14 @@ unravel(int p) static void check(FILE *f1, FILE *f2, int flags) { - int i, j, jackpot, c, d; + int i, j, /* jackpot, */ c, d; long ctold, ctnew; rewind(f1); rewind(f2); j = 1; ixold[0] = ixnew[0] = 0; - jackpot = 0; + /* jackpot = 0; */ ctold = ctnew = 0; for (i = 1; i <= len[0]; i++) { if (J[i] == 0) { @@ -759,7 +759,7 @@ check(FILE *f1, FILE *f2, int flags) } } if (chrtran(c) != chrtran(d)) { - jackpot++; + /* jackpot++; */ J[i] = 0; if (c != '\n' && c != EOF) ctold += skipline(f1);