From nobody Wed Aug 10 19:37:19 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 4M30ZR4zl8z4XxQt; Wed, 10 Aug 2022 19:37: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 4M30ZR4VB5z3jM7; Wed, 10 Aug 2022 19:37:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660160239; 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=nVL1P5gpv56MLBwy3APx9Hb2Wm9/QbIMxmSqxVM9E1s=; b=oY+WW0jeCIOEMf6W4EzKUUKlTcGiHQEOAyMnAQIR/+hgOvaWFOsoAmHzDb6luFbM5Dn46S PDUAbm3QltYrpqPEa6SDy0NEmNYHeMxDE/f3ov1+POqsEKAc/UINtBM0fKOLdz0Qn1w3Na reIBEnYgdMVrbDCCNC8pY2PwGS9UVFqgWvFBTLnyufjq6snCJtsUVV6B9M5Po/KkKbSK9Y 5tJURoc4mvzSt8VkMMJJMzIXjz1TgA8QUZIOtxtpkMUZcybHTbGFy9GBXOqODhKEomqNC8 MtT6RmvaiiYOmlOc49HtFQdd+kR89f8W4ZsLnBw9GUaSAJDWxzJsPHUceA/NNg== 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 4M30ZR3YkRzP5v; Wed, 10 Aug 2022 19:37: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 27AJbJPm060380; Wed, 10 Aug 2022 19:37:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27AJbJWr060379; Wed, 10 Aug 2022 19:37:19 GMT (envelope-from git) Date: Wed, 10 Aug 2022 19:37:19 GMT Message-Id: <202208101937.27AJbJWr060379@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 3471fcf3a42d - main - 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/main X-Git-Reftype: branch X-Git-Commit: 3471fcf3a42d2a7b221215bfc772a6d1a170a059 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660160239; 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=nVL1P5gpv56MLBwy3APx9Hb2Wm9/QbIMxmSqxVM9E1s=; b=JbMDTPi2PH1Cj1aHOlNuleChcmIJi21IO+hNNUbP6EHF5Qo+KfikTVcFXmWNLgJ1AW9oCx yJJTMbwD4+kdeoMOUQcUZmip4+6adCEP/jtIyNXaaU8gDe4GAWAz21ZL8Ec43bs/KQxN09 f0Ts9/iFjn0WbjjVjkWom/FbFHXb8Auhm8N2M7LIWQlXNrKjIhjCp1FmaNRdbz15018XJW mq9AYWsRvu6yKPPoRNIdaS8iw1eQoyN90X5HQg5+WDbiZmsMDlsZGu6AV8ufUbf33jQco3 T52w1Bbm50r2tyIPbzqDGetaX8S+EhONFmMdpmaepE6SUO2QFyeEDiIzfHn6TQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660160239; a=rsa-sha256; cv=none; b=gOjCRD1uhZmZn4OtvxDt8Ba4M9w+lolb3NceXUOfSBKvTYAmvZyLgHA0sbfFF7mEaEWt5+ OwpAUKWoeti1FREPCEU1hcemRknZD3Zr48qD9x+9oE7Df0Oh8N745oMzLMBAYw86OALVSQ 8PLrLI8CzrpqO7vZdznFsak/5b287HWr3+sQYioskxNdYp5JaH9ctkt/l2TkmYdhibcHko IzREFoPzND7d58JpDEOwiFGk+jzwJHX5PBnUcJKXonMPw0WRoqlIyfgFWsww+NoUWAXVp6 gWDzZjAUtGXhsGfkwrJ6XFheOY4/qXs1OVY+ZsoFa60vwtmoxSls+4L+GvJ1/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3471fcf3a42d2a7b221215bfc772a6d1a170a059 commit 3471fcf3a42d2a7b221215bfc772a6d1a170a059 Author: Ed Maste AuthorDate: 2022-08-09 23:23:19 +0000 Commit: Ed Maste CommitDate: 2022-08-10 19:35:29 +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 --- 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 02b040d787ff..5312fe622c5e 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(); @@ -635,7 +635,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;