From nobody Tue Jun 20 16:29:27 2023 X-Original-To: dev-commits-src-main@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 4QlsXm2RwTz4gJfT; Tue, 20 Jun 2023 16:29:28 +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 4QlsXm1m3cz4L8v; Tue, 20 Jun 2023 16:29:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278568; 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=UYXQUGzKTIcWWgxj6HU+bzJE2RV1mXwtZvKJyfpICao=; b=Zf/yLZpi8D3Gp6HbUjUHCdLzpIJtVM6Lz0RELewKcTo5Ucmp2eA8OdAF6yZdJTbp3l/4nC OaYD9zVWwWV/FJSMbmKkmjrxCqqoeTCZckCnYfZfT8Znco0ctOfOX6isTS9B3NDrvMOsXP YJtLL+vttS8CUFzVmUJFZzXQHvlNXqEKF6OAYMmi8XZWRULqzsfSGgYLFFF1bCD3EnPii1 lUA+XXNzmNwIIvklMr86AWHxWxB4KybyZITWqVBV6vXSVaUEp0jixHUDsHsLiIQrl/wZ2Z DopK/8ScYdQbAZMGWyE03Mty3VzTjigYJvEZUjRdVGUSv4E0PwYYMK04kpxjHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278568; 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=UYXQUGzKTIcWWgxj6HU+bzJE2RV1mXwtZvKJyfpICao=; b=F7uAUPrmCPrxcHr6XtbDj+lWwW0XzCg6ypVPhIbHLGJlEpzTs5tK/ogGzbwzxtSqFN18Cp hFjo75Uux0mdp35TIrPhNldVAAhfU7hJCuFNELdDU48jBLos4fd+eacdzFYe1B1Ix+Y+LS EBmRSL7FFZLDVUik4Pl55S3H3dugjF7wtcZcaWA1pklBtN+itm+ypVmWaDTi7qksuD+M64 IRfPD/b016m2Z5+RJH242DvpTWu5WDlB0+Z3f1R0OetP0AWzPpGiU93C0+PCog915I+caT AahFpl6iEOse+nUDUOzZDHK9yCbLd+1Wn0NsuFoL3a7ASvguVuoomY3E+Z53qQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278568; a=rsa-sha256; cv=none; b=VYyfgZERFCBgnUYa3jW6XZjzPnnIqlC5YnNEDSxC3b+guHWbjgSxKP35hKS/6JaRHdSL3Z dliEVyfP25r2ojTbBOC/92QTKGewBCISJ2nwZ5eDsKR6TNVm3XF/x6JPQU54TckNhFc7qW GG03G4ZI9eWQPV/TpLrTp6eIW13a2R3ovX1/KJzkeMnErv+5Ob45fgI1h2TNTFL2kM8T4E cqYxHpCfuM+DP20aBmRnW/Y+B8IOyXe7h4wzrQIjx3TL1EL0v8xsDk47JdzYQQJeL2vFOD zqYACnCrcqJLVmK2DVuEeF1ybW4TP4koCWhvNnzAuXpKJ3gPUkMhipAKrM/buQ== 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 4QlsXm0N1Zz15sZ; Tue, 20 Jun 2023 16:29:28 +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 35KGTRYn045262; Tue, 20 Jun 2023 16:29:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTRWZ045261; Tue, 20 Jun 2023 16:29:27 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:27 GMT Message-Id: <202306201629.35KGTRWZ045261@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: def653cd6c38 - main - ac: Remove set but not used variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: def653cd6c38e17ab7bac1b13d34dd7f5f584832 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=def653cd6c38e17ab7bac1b13d34dd7f5f584832 commit def653cd6c38e17ab7bac1b13d34dd7f5f584832 Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:29:00 +0000 ac: Remove set but not used variable. Reported by: clang --- usr.sbin/ac/ac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.sbin/ac/ac.c b/usr.sbin/ac/ac.c index 1372b175f116..8d75c4ba1013 100644 --- a/usr.sbin/ac/ac.c +++ b/usr.sbin/ac/ac.c @@ -408,17 +408,15 @@ ac(const char *file) struct utmpx *usr, usht; struct tm *ltm; struct timeval prev_secs, ut_timecopy, secs, clock_shift, now; - int day, rfound; + int day; day = -1; timerclear(&prev_secs); /* Minimum acceptable date == 1970. */ timerclear(&secs); timerclear(&clock_shift); - rfound = 0; if (setutxdb(UTXDB_LOG, file) != 0) err(1, "%s", file); while ((usr = getutxent()) != NULL) { - rfound++; ut_timecopy = usr->ut_tv; /* Don't let the time run backwards. */ if (timercmp(&ut_timecopy, &prev_secs, <))