From nobody Mon Aug 29 13:07:08 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 4MGW1S2WKsz4b6Kp; Mon, 29 Aug 2022 13:07:08 +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 4MGW1S22glz49y1; Mon, 29 Aug 2022 13:07:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661778428; 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=ZWulYfkzOm9AgDlilcWx5TutBhA5iVcJK5xzBaTXZzc=; b=pU87q9Vx0vnNy81kitcWOWgIllryIPCkGsn9MKafVd+SsXeQxlD/ejjrD4fKxFBKnFJYiY 6RAmxQG3J/Z30LYOBZ/f6xEXoXuga2Vc3nQdevGXXqDl+vhsdEh6B5Q00WYIYebnJiPRW+ ZtE2ylnA4xyP1Xm8cKMzdvrHqBJZceno5wVhW4/kJzq0zEcjVr9F465G4pPAizOxksk93+ 0SXJbtA4MMrGKPo0N9/HjxbxfqeRmBysaHlUV3z5+vmEv0H51VcyiAq9a8wclapANaPWC+ hzcBeVbjIGizt2miw6QtfRx+POlOdHyp2olLvJlOPnp1UwxhkAwC8jUI+L/vYw== 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 4MGW1S18t0zR3R; Mon, 29 Aug 2022 13:07:08 +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 27TD78Iw014765; Mon, 29 Aug 2022 13:07:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27TD786g014764; Mon, 29 Aug 2022 13:07:08 GMT (envelope-from git) Date: Mon, 29 Aug 2022 13:07:08 GMT Message-Id: <202208291307.27TD786g014764@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: c57ce1ab8704 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: c57ce1ab8704b567bb649d7edfa860e664192c84 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661778428; 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=ZWulYfkzOm9AgDlilcWx5TutBhA5iVcJK5xzBaTXZzc=; b=Jen6qJ1RdMINc6gHzF9uEJeL42Fyz9BFZzoly59CfyUCQvV80Q0vRQIiP82bEUmd/bSksi 7x8xUNIsiHY9oThKzQWtU4PZqnxUB7/9lz9gr6lGGLYSb04F4FwfzvcZwbfdKunm2hq9a3 wkeXLtOBac/GqisK2uGKubIXxWCOL31AP4jJkgJ7A+4XUvdJnjomcxeYfXGVq/k8Q6L0qA F5BaeIxqLwzNDMmLTBkF0HVfNxR0ODkgt9o0E9Kug7e0PEbNKbcp6JaGzeQcdRjZvjrM9W bDHN7VNqvBuCHVoOMUIp5koRIeng3YfVP9BJeIJaFzuWHqYBWIzwOfbBMoq1Lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661778428; a=rsa-sha256; cv=none; b=m5/10JxJ7Unn24sQ6lk35KtSQZ4Ku938exoopmG17S/pkswb2+s9pFTS6UQlMrfBnhwAfZ FUKcu+/7iMKwEcHV/MsWGDm8ENQueG56DSorbNFdwVu8e9Var2kq30Az3MEltNxieLGocP hoXKnbepPReiQ6dv6Fq/3a8FsPBGPXNBWrKz0bKhpH7UYUjAA4REYbkpM4snN9CQAEzDym YVVnc1va84NZNOO/zruC1fzM8Y/u24V+NkL5Q/nOdDsxm2cBfzr+lwRrqtyP8P0aG4Otcs JISP5BRl2pQpuHD2+ohPSyP42508a5rKy6PDa1xa1mQP+e7O/O+MuvYeP2sdxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c57ce1ab8704b567bb649d7edfa860e664192c84 commit c57ce1ab8704b567bb649d7edfa860e664192c84 Author: Ed Maste AuthorDate: 2022-08-09 23:23:19 +0000 Commit: Ed Maste CommitDate: 2022-08-29 13:06:03 +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 d80894909130..94ee93ae5374 100644 --- a/sys/opencrypto/criov.c +++ b/sys/opencrypto/criov.c @@ -64,7 +64,7 @@ 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(); @@ -84,7 +84,7 @@ 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(); @@ -137,7 +137,7 @@ cuio_apply(struct uio *uio, int off, int len, int (*f)(void *, 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;