Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2023 19:39:11 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: 9a55543f8eb5 - main - mt: Remove a set but unused variable.
Message-ID:  <202306201939.35KJdBXi058350@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=9a55543f8eb5d40120b06bf806d60efbc0ceee5b

commit 9a55543f8eb5d40120b06bf806d60efbc0ceee5b
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-06-20 19:32:18 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-06-20 19:32:18 +0000

    mt: Remove a set but unused variable.
    
    The variable is unused because the -v (verbose) flag to
    'mt getdensity' is a no-op.
    
    Reported by:    GCC
    Reviewed by:    ken
    Differential Revision:  https://reviews.freebsd.org/D40653
---
 usr.bin/mt/mt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c
index a053cdd92132..89b86a6c1d3b 100644
--- a/usr.bin/mt/mt.c
+++ b/usr.bin/mt/mt.c
@@ -1555,14 +1555,14 @@ mt_getdensity(int argc, char **argv, char *xml_str,
     struct mt_status_data *status_data)
 {
 	int retval = 0;
-	int verbose = 0, xml_dump = 0;
+	int xml_dump = 0;
 	struct mt_status_entry *density_root = NULL;
 	int c;
 
 	while ((c = getopt(argc, argv, "vx")) != -1) {
 		switch (c) {
 		case 'v':
-			verbose = 1;
+			/* Ignore. */
 			break;
 		case 'x':
 			xml_dump = 1;



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