From nobody Mon Aug 29 01:05:40 2022 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 4MGC104X6sz4ZqtG; Mon, 29 Aug 2022 01:05:40 +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 4MGC1041CPz3CwQ; Mon, 29 Aug 2022 01:05:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661735140; 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=GlQQG2kDzZAp/EmmfTjV6pbhbHyuID+3fZpgnGopr3w=; b=pGZ/LfZ8n9aez54etQ4sUuLEmONPPpiFNlTYmCkKCyVgwaUUaNinYhrBXpOXiG/KDe7Kjb WpbRoMoSFbQnxVRW/OP/2OogWwqeI1A+//e2wwEp6CeAZhgTvOlzBS0dVCg0q6SPNFPbgu OiPl7SgHq+7EVGaEpBiBWvQ5JbtfQs10X9/M8cWZ2IL0SeaUcNbemvh+I6/0mpc119sOX0 8f2kJgDmZS97bFhavonxKwQRuhwlSQBPaWhYjOZQckPqwWKBpSkKmOX8xq1j59e3wt+2mY qbVOM4/jK13vjI6HWnh21Vi6HzgGqCk8B2A80HC/I2bR47fjG2LQwjzd825c5w== 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 4MGC1033Y1zGJJ; Mon, 29 Aug 2022 01:05:40 +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 27T15eJG019445; Mon, 29 Aug 2022 01:05:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27T15eGc019444; Mon, 29 Aug 2022 01:05:40 GMT (envelope-from git) Date: Mon, 29 Aug 2022 01:05:40 GMT Message-Id: <202208290105.27T15eGc019444@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 6aa98b826f24 - stable/13 - opencrypto: mark INVARIANTS variables as __diagused 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6aa98b826f24ee019e3754400da1f6d9b9865463 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661735140; 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=GlQQG2kDzZAp/EmmfTjV6pbhbHyuID+3fZpgnGopr3w=; b=mKyy2EvHTM3dZxZOUKYLFR8u2kniL4653L8onjdTbGauLcbrc0iHDG58snQxxHY7hsKauD pEmTdCjM9T3tdmzq8JKj+BE9NQIZt/C0Yn3zbaokbQp4NMOnno2smGcqDfcxiGRks3VVsp bPNuW46YwCgxYUD7Bbfy9mU58XcZV0k2SS0l4jIhlbgD/bl8sf0bgQ1qDDOvwxxNTd7tTb Sb3VHelyM5bsALeGOv9qg59riK+kM80uhqUIsydKH/CATm5o8SyEFEqVnx1Ua5KxhyERc6 89cZ+cwlWw6h7Z5xyQB6swyYh9cZptNZwhavDnB1sUKe1og0AZwMe/F5k+HOXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661735140; a=rsa-sha256; cv=none; b=QDkGnriWlW7KJ5wAsrWqjA7h7edIUnfWkl6stIH5hMvJL7P2bEkFLGuwnHcFYhvp9cdsyV UXcpLroU1/1ULLioXRzp23jeDbJFARr36g3RXH6Qe/3CpIAfbKa2SO6LkFd9fG1gCEfQJk UHOeLGujpYOHXyK9Fm7Qr3C8KItyMHUrQsaL+FmWNqlJT1uPpq/+HJ0iEiFN3vRYg+hlLS Iu4+r/m1OzjZglgbsny88EvrYB3smH3HSqDs04AiMjWsGxzLJ5Ru99aoFf5o/rK8PBUOZB DJRCf9I1hBiThderchGAFJTFZl4V9YD/qluT+8pINQKrmLKyHFwm5FtzDHrhBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=6aa98b826f24ee019e3754400da1f6d9b9865463 commit 6aa98b826f24ee019e3754400da1f6d9b9865463 Author: Ed Maste AuthorDate: 2022-08-09 23:23:19 +0000 Commit: Ed Maste CommitDate: 2022-08-29 01:03:48 +0000 opencrypto: mark INVARIANTS variables as __diagused Fixes INVARIANTS build with Clang 15, which previously failed due to set-but-not-used variable warnings. MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit 3471fcf3a42d2a7b221215bfc772a6d1a170a059) --- sys/opencrypto/criov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/opencrypto/criov.c b/sys/opencrypto/criov.c index 25702e3592fe..e54d31388133 100644 --- a/sys/opencrypto/criov.c +++ b/sys/opencrypto/criov.c @@ -85,7 +85,7 @@ static void cuio_copydata(struct uio* uio, int off, int len, caddr_t cp) { struct iovec *iov = uio->uio_iov; - int iol = uio->uio_iovcnt; + int iol __diagused = uio->uio_iovcnt; unsigned count; CUIO_SKIP(); @@ -105,7 +105,7 @@ static void cuio_copyback(struct uio* uio, int off, int len, c_caddr_t cp) { struct iovec *iov = uio->uio_iov; - int iol = uio->uio_iovcnt; + int iol __diagused = uio->uio_iovcnt; unsigned count; CUIO_SKIP(); @@ -651,7 +651,7 @@ cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, const void *, u_int), void *arg) { struct iovec *iov = uio->uio_iov; - int iol = uio->uio_iovcnt; + int iol __diagused = uio->uio_iovcnt; unsigned count; int rval;