aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mt
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-06-20 19:32:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-06-20 19:32:18 +0000
commit9a55543f8eb5d40120b06bf806d60efbc0ceee5b (patch)
treedc489a264081c463c26d511e4054921691d9344a /usr.bin/mt
parent8144db85fe76264bd9bf9b56133ac5b4d4020835 (diff)
downloadsrc-9a55543f8eb5d40120b06bf806d60efbc0ceee5b.tar.gz
src-9a55543f8eb5d40120b06bf806d60efbc0ceee5b.zip
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
Diffstat (limited to 'usr.bin/mt')
-rw-r--r--usr.bin/mt/mt.c4
1 files 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;