From nobody Wed Aug 10 14:40:21 2022 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 4M2szn2Vdhz4Yy9V; Wed, 10 Aug 2022 14:40:21 +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 4M2szn1yypz3xTK; Wed, 10 Aug 2022 14:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660142421; 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=d0xKx4ZlGskoFk5NQJ18M9LNA+4+nTpqe/LCsxThLxk=; b=dH7rZpnOh1FOWZwthjDXcwXentCtMa1H/Bq9xI15CU0H1SkdHI15wTI7a3JixnX+6cVEjm sXEzvzfb46WE/mTZy/7z7c2QVN2imnrY4eaS8JSsuyZYOJ5Yv3aPO8m+PS/UR97T998sal a8gpig5ul2f9CllO1HWMTDmXMLzrUEQPia+gc+mx13oUSPsX3gIIVNnThlgQpAXtBiyklK 7fS/edCfNESYVWmYYVfLY1z2VbqUObRC1Wtd9/a1fNDsMV4Z0GGHK2IOuCg5jsqB5/GHMF be46jN66cg1O45q4X5l/hI8qZxICnAJeOLW+G3jYMl4UUDYcU4wFa6B8XtzB9g== 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 4M2szn11qBzDmP; Wed, 10 Aug 2022 14:40:21 +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 27AEeLWX058467; Wed, 10 Aug 2022 14:40:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27AEeLLZ058460; Wed, 10 Aug 2022 14:40:21 GMT (envelope-from git) Date: Wed, 10 Aug 2022 14:40:21 GMT Message-Id: <202208101440.27AEeLLZ058460@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: 7dc4d5118c02 - main - gpio: mark INVARIANTS variables as __diagused 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660142421; 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=d0xKx4ZlGskoFk5NQJ18M9LNA+4+nTpqe/LCsxThLxk=; b=Qbj7VwqSuosLCOXvNz8LxnrlWSbmhMJIT7BSIRR6mlplvLkhK6Zh7mrE8CssVAczw/neFw P+aFYJ7fP/ztKR4okst5DSrzpbY7TurUwelNmEYkUuHwhqzgZ6SfvGWcthPMeENwy3/ZWF T2SpARQIqP6OFzquZafNs0+MEhtui+pF89WosjMxiN1RnJBfijxicFdvFN0h/U0weYaO5I 27pJnpmxPx3p5LlYDIPb2vMXeY1ISsRMIWQ/PrAM2FDQVPA3fGKx0O2Cxwa6EJ6m6KxW4l /moWvbon4Ip23UGj87kK7uALWutpi3BFh3SnPqqQ2Ks2VE1H5FAjmSNB1E5XAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660142421; a=rsa-sha256; cv=none; b=LZ5Y29VDbWfbxw2mffoWAsD1c4PbxDi6TnmCRbVz9EId7bZjCOsm830j5rBxQNsESUL8C1 W7nTk3TwLlA7FRzrrZU+pycZZSsxFPuCssWfpfwRW8Ks2Rkci0Z3eE2INb6HzumA02iy1H AXIoRqcv7PhxKHa16xlJHuY4IoDyqCqmdoIIJvIfTaVEPKBNrM5u11OSUx88L2Tja1ASpu ZafuwjUpeDfQwfR/gaxT4h4dlZgd111iS617b/E4nYuxSCyTA+JRMM2Fl6Q+h5dX821EsF 0ydXtT8NwdaCgwBiQNqMHsN6qwX/czqh2DIrkBxmTWHchCdN5p/Ud4OaSKAokA== 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=7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc commit 7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc Author: Ed Maste AuthorDate: 2022-08-09 23:30:13 +0000 Commit: Ed Maste CommitDate: 2022-08-10 14:39:58 +0000 gpio: mark INVARIANTS variables as __diagused Fixes INVARIANTS build with Clang 15, which previously failed due to set-but-not-used variable warnings. Reviewed by: dim MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36097 --- sys/dev/gpio/gpioc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c index dda37ae54a92..4c6270f80cb9 100644 --- a/sys/dev/gpio/gpioc.c +++ b/sys/dev/gpio/gpioc.c @@ -269,7 +269,8 @@ gpioc_attach_priv_pin(struct gpioc_cdevpriv *priv, { struct gpioc_privs *priv_link; struct gpioc_pins *pin_link; - unsigned int consistency_a, consistency_b; + unsigned int consistency_a __diagused; + unsigned int consistency_b __diagused; consistency_a = 0; consistency_b = 0; @@ -634,7 +635,7 @@ gpioc_cdevpriv_dtor(void *data) struct gpioc_cdevpriv *priv; struct gpioc_privs *priv_link, *priv_link_temp; struct gpioc_pins *pin_link, *pin_link_temp; - unsigned int consistency; + unsigned int consistency __diagused; priv = data;