From nobody Tue Jun 20 19:39:11 2023 X-Original-To: dev-commits-src-all@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 4Qlxlh2HKvz4gFqC; Tue, 20 Jun 2023 19:39:12 +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 4Qlxlh17MCz44Gq; Tue, 20 Jun 2023 19:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687289952; 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=Mu6Ri7HT9L8tV7EYKKRu/NUm4LmgFFSK7+GTGgiztps=; b=tSAmzvDn3G//o24maLDFfi+QqLcSs7Ats6d4UpMudNdEfDTSUku2/tbdp49oT/AbSzeL5Z cAXGuwSx5+61XTumjVrJWdY9zTaOAdb0/k1C0PfGBaaK6IRO+q9Vv//ybGA71Nk6UCJiSJ SiJGuC1AXiUUuRBvHP29XIlMlJ8ro4iZ89pLzd8aNg5U0iM2BHvJbganOGPj64bFCdFu4r eTBswGg8wen2z4LV8Wd/RNCV1C358ezT70b84M1uIStHTIutv/FNi0togPJT8moX8RSJe2 BUkALBurBhxOKP/+M/6oCdoxQefaAhOYG+rBfV0O8zm1+F7NrKYEZtjgCYz9nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687289952; 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=Mu6Ri7HT9L8tV7EYKKRu/NUm4LmgFFSK7+GTGgiztps=; b=hhk29AFl23MzLr8uquOWA/Zb4tHhD30EMTLcpsSOA2K99RWfH6c4Y9Zi3FlcK3w6SnzD3U pEFYiAlArq+2NOUvuL02PjqWLCNCwNc3zov3hpSRGIy/Jrt6waiKfMZXhXKitTbJ8wKUnL Vk7ML/cX3TXti8IXJ6LXHF4isXxZfeB8E0oJ+AkWWQluXY5BOYauiQAvCqfGV2IVhpfk9w 1AWvaQddIHF3jd6bHbUNncUG0k9Wr6KPdDpgAdnQTCIxFulxolAf6aW58y0ycXz1BA8mlE ns+9jCYNzKunYkxQKopUKn7QAoFAGZCdvZv6Ay8Rf5WpPBbfxsvirc5UjwOkYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687289952; a=rsa-sha256; cv=none; b=fGFZQ8ANSEorM54Euc1AiQody2fwIr1NVz7VXL3i/QevowqEzwaX0Oc8GkW99jUqGdFwaO N9oeG9UHBqWGVKrp3IbjQxElS1b41VHnv5ADybqHahtDwuIYgoVCHu8C1mpeF2DvtXGqGy qmDNPh/KpfMQAyXRrpfTNes3vY66scCONL73rukCvcWJeIq82+PUZsfzxXJ+ICnt2HFI6l JhfLCOhb97AHJcWyORBonOvOxI05Vk3Ftzzhc3/ghLhw2xG2qwqjmR+YN0ME3uuPFHpD6K Nob+fWD42uEnGLfXVc4fEP/vkFDGByM+xpO6IaItwfcRqmeCjjaV1l80Qbt3dw== 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 4Qlxlh07knz1B68; Tue, 20 Jun 2023 19:39:12 +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 35KJdBHp058351; Tue, 20 Jun 2023 19:39:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KJdBXi058350; Tue, 20 Jun 2023 19:39:11 GMT (envelope-from git) Date: Tue, 20 Jun 2023 19:39:11 GMT Message-Id: <202306201939.35KJdBXi058350@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: 9a55543f8eb5 - main - mt: Remove a set but unused variable. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 9a55543f8eb5d40120b06bf806d60efbc0ceee5b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9a55543f8eb5d40120b06bf806d60efbc0ceee5b commit 9a55543f8eb5d40120b06bf806d60efbc0ceee5b Author: John Baldwin AuthorDate: 2023-06-20 19:32:18 +0000 Commit: John Baldwin 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;