From nobody Tue Jun 20 16:29:19 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 4QlsXb2gTsz4gJJ9; Tue, 20 Jun 2023 16:29:19 +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 4QlsXb1jqRz4KrD; Tue, 20 Jun 2023 16:29:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278559; 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=BNNBdPI/ptRu/DZPEpUUpjkgcB7xCnJoFpE9qGRVWrQ=; b=ViCag3v6AJONgbeCEo7dQWsgpMKegyguviRngX80I4QrSVBw4r07eBOSxLjw1WYJUKOJPs etoJ6E4SVoOBGTSrY47CsHKmWRP/QA9hZC1Ye/F6xGabSTqiD3qJdCTn1AvZvLTZtESf44 bSToYluZT07PzWGqWYQICVRJUtqRI/0Ob4jEfULOX5O68s+8DdjL/bE8vCUJ7y9cJW93mW wSgEWlFp7ZZ+tZ5mWql25aEQVwNS+sVWNA/4xCSVdja0jXja/V7IrIPVTMeNYojWIes2Uh cQCzgxVhJ63jU3hY75E64/vj+qSghstC362MTcmQdLWRkoF2tyAVWU5DKkT65g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278559; 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=BNNBdPI/ptRu/DZPEpUUpjkgcB7xCnJoFpE9qGRVWrQ=; b=qc3x2s0fP3AEYyhuGkUFkQhSHQn6wFUKV+HKeZkodtOs7a2U1x+6ttxsbsAvWZ5T57n4+X zKwIKutEjVmkXnEGkXqKWczMaJ7XGztENHCpn1BrWT+NflOQ5zpbqAj10OMyXXVYmRh8vQ UGBlO4bwCyoDKA14munjsuCs4W+Af62rfT+QHBcFMNi3C0TajarsQSKKMFHEz1SUBGy21z sayDprL32vI7P17v9BOWrE6XRLdqYRM79goy4upkyghvScxR1Go6GPtOFBN851MbVaan2m 2jtt9JNdOuVoFapWTZc0nTamDFeHHzr4dGAtudGQZXm87lY4bgbFMZKW4Jv/fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278559; a=rsa-sha256; cv=none; b=f7UZwLlswny6BhvbHHGiTuahSNrRvowXKbzPAUJXHDyecTjc85J2h2qE+yAHK6nw+rX1mW b7spgxv9M9cHvw0613N8MOb/RNYimOtWNLj2m3hnW9NhJdf1RjEtk5Zijbzz6oHeJ+LiE4 Gns+nR/fKjBA9eFHkc+Tc8QKp5sjcMHrsuPR1Fghex8kjDn5TavnCwWAnaotCsQl0tBo3x aaB0x/f6SsPR7fux08b+CnxLITh0APFOM+xvOw+w2KKNDnmWr1cxWUymRzoRXSabdibh54 Nh2VZ73YXVOO9L35OkaP+OccdauaV+Dn+dFO0bwwx1ARSY4bzCQsXXpX/Wa/Zw== 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 4QlsXb0XmLz15n0; Tue, 20 Jun 2023 16:29:19 +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 35KGTJur045097; Tue, 20 Jun 2023 16:29:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTJNL045096; Tue, 20 Jun 2023 16:29:19 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:19 GMT Message-Id: <202306201629.35KGTJNL045096@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: ee0299e5f300 - main - units: Remove 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: ee0299e5f300cbc2ab48c1fe44db0325b40d19a3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ee0299e5f300cbc2ab48c1fe44db0325b40d19a3 commit ee0299e5f300cbc2ab48c1fe44db0325b40d19a3 Author: John Baldwin AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:28:59 +0000 units: Remove set but unused variable. Reported by: GCC --- usr.bin/units/units.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/units/units.c b/usr.bin/units/units.c index b222ade449df..88363e2e6c34 100644 --- a/usr.bin/units/units.c +++ b/usr.bin/units/units.c @@ -763,11 +763,9 @@ main(int argc, char **argv) EditLine *el; HistEvent ev; int inputsz; - char const * history_file; quiet = false; readfile = false; - history_file = NULL; outputformat = numfmt; quit = false; while ((optchar = getopt_long(argc, argv, "+ehf:o:qtvH:UV", longopts, NULL)) != -1) { @@ -783,7 +781,7 @@ main(int argc, char **argv) readunits(optarg); break; case 'H': - history_file = optarg; + /* Ignored, for compatibility with GNU units. */ break; case 'q': quiet = true;