Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2023 16:29:33 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: e8f740fbc261 - main - diff: Fully comment out the jackpot variable.
Message-ID:  <202306201629.35KGTXi6045362@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e8f740fbc261b953ea4f22b80846f55c54225710

commit e8f740fbc261b953ea4f22b80846f55c54225710
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 16:29:00 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306201629.35KGTXi6045362>