From nobody Mon Aug 29 13:07:10 2022 X-Original-To: dev-commits-src-branches@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 4MGW1V5H71z4b6NM; Mon, 29 Aug 2022 13:07:10 +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 4MGW1V47Pgz4BnP; Mon, 29 Aug 2022 13:07:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661778430; 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=fEEUjFyZ3Fe5epG53xF+UVXveLm8Rlo2bIUATs/ji3s=; b=JTvhP6UVcstWm0ImU7cUnXD5JDG/j6szFw/DlYpb3sNxggMdR/5tXC8FXCufbqyYxAK4lL H64kcDFt4CbRoxfgfmx3+bZtp8tzhE1gmP5i1iD1YeI9pJ0fD/KkeCI1WorbgGV+KENrwm I9ocZVmQVr7n3i2ifUK4v/KgSri68GDOeX+H0qLbDuFiKprYIrxoY/L9gjn1iditGkxGZ6 Iv3Nq5EGSw4VHFKmH8PBCYnf9WNR5gg8HGXez1l5+HzG9LVNcXWsrrx/JgdUTYUvkA1Usq ojpldYbjDSB67sNTNc0gjy1tS1ab86D8aQU/dfkqQCH+sIMkLJUwcDBbJPmejA== 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 4MGW1V3CxtzR3S; Mon, 29 Aug 2022 13:07:10 +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 27TD7A2v014813; Mon, 29 Aug 2022 13:07:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27TD7Avi014812; Mon, 29 Aug 2022 13:07:10 GMT (envelope-from git) Date: Mon, 29 Aug 2022 13:07:10 GMT Message-Id: <202208291307.27TD7Avi014812@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: 4555d2531462 - stable/12 - gpio: mark INVARIANTS variables as __diagused List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 4555d2531462a7f436f028db4a24ca5259126d28 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661778430; 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=fEEUjFyZ3Fe5epG53xF+UVXveLm8Rlo2bIUATs/ji3s=; b=A4vZKBcZtHFNX01AbjCl8L1TzETgrEE6cl6Vwim9tIHf8M87jeW0fqnthwNEmUaVKnfJqQ 7MkTJ8xBJjmWnauvDZekQ8ohmG3l3r7QPgxUp2/6knvRqxCql99cRPdEkq+QjALDyOlb2k a5xshmfTbcVRZbu5NYHc05Qx6SEt9RCuL9YJ7dq4AgLVpU/w0mBYCIzzhdFSChE2RF5JQ/ 3QNhgfSHmB9ba4z1G+nk75/FAbAu2qjp6LJwBbqkQXX6X+XYWDwopEFwDgSWa9/pe/ZzvS fwybZCQOnLh5QHWiKbQJ0Lptb7fpdinmmFTUPtMACArKBqpi3ypTIROYrDnfng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661778430; a=rsa-sha256; cv=none; b=iWxwZmh+41HmdVh2yJGsZ9hJ9PJ7W5pcDIhCDlKsess1PeA7oRs5Khm/bBQ/smOmtLPcbD PNseYPk8q0up3kkjH+vqphztw+ajbgBkqpghjVk4V1b8HV/PTRi9mDZIUqoqiD5+Wi+bzA TJv3JFp6aMOqGiFM2l7VfG7iEmVyvsSar8pco88omNN5OHjr+mVwQlT8ITObqhFfSmUFTY x2nkZGIBc8kpKQrT8dwOwZ05y9H6bHKCkR/zSbERbA/Uan8q6oK1RWKDTHHVId2tapX/ht gDjacCoVtoTRYZ/x1xeh26La1SqVEIcPYqI6YU1kZzXNIu7MNIxeDbqoNfLdeg== 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=4555d2531462a7f436f028db4a24ca5259126d28 commit 4555d2531462a7f436f028db4a24ca5259126d28 Author: Ed Maste AuthorDate: 2022-08-09 23:30:13 +0000 Commit: Ed Maste CommitDate: 2022-08-29 13:06:03 +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 (cherry picked from commit 7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc) (cherry picked from commit ff6ab85fc95a18da4d87d56afd82b484652ec3f6) --- 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 736012616971..b3da176bd7bc 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; @@ -635,7 +636,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;