From nobody Mon Aug 29 01:05:42 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 4MGC126DlSz4Zr3H; Mon, 29 Aug 2022 01:05:42 +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 4MGC125mqYz3D3b; Mon, 29 Aug 2022 01:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661735142; 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=X0s4V14Vzm2wzXM6WVHmkLYGW8fIaQtnRxcyDhTne74=; b=LAeI38gMvGhkkcxniXtW0fnr6sGQ41jp4y3UyN9lH1ohu37cLrdxTnrvCBwCfgWCWtzTiq 8qVfU7eWJOry6caNy/p/5oW9lDOhCQt2ZxlRGHGq61Dg8x/v1+3TDb3CDnyev3zuhJPPOM Kg2s26QXyDvlQjQgOn3QYL13r3OAt3sr4dkyBC7dXkIZuIjVWlQumKmtQHrCh15EOTIkfN mfyCEFhoBv2Es9EBUh9532m1U5xBP2203F5RNl77x1X1UQB9eP6np+875Ta83e9inHSxI5 tmOVpy6GktzxGTip00MwwfAbJ5RUC+Gpn25UunbcGJf79CshClSR042S/SHvQg== 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 4MGC124qHczGc2; Mon, 29 Aug 2022 01:05:42 +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 27T15ggJ019493; Mon, 29 Aug 2022 01:05:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27T15grF019492; Mon, 29 Aug 2022 01:05:42 GMT (envelope-from git) Date: Mon, 29 Aug 2022 01:05:42 GMT Message-Id: <202208290105.27T15grF019492@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: ff6ab85fc95a - stable/13 - gpio: 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: ff6ab85fc95a18da4d87d56afd82b484652ec3f6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661735142; 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=X0s4V14Vzm2wzXM6WVHmkLYGW8fIaQtnRxcyDhTne74=; b=XLEoTndIIpVzYecNyyTalsnWYRyhbOVj4/fhu4uOYM9BwjD0vDOiHyVbUjvpj6kLKjwrsB vW//1w2ZyJsLAb4lrMaM7cdp41OzSyvFZ7InuR9tD7VTUDyflmonNpooLfgvfOZQFLHIZH KIReQUv780agspY4bt22DEqzl4554raMd1Rnwa3/HY2gQ2Gpece+TFTJAcYqn/e5SYrO2K lUyjLyNuo+cn+fnzWuUcTO5IFemBnfAQV6R3TptQXwPXAhcbrEexspVHsK7iZQWmoSI4r5 cPV3kecjhkq4qfjhLvRCAKMghzN2BTz72RVGQO7KVy4jSRB5GX+/LZbOy3L+0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661735142; a=rsa-sha256; cv=none; b=KfU5KPy6EmESRY66gJuOV3SphL17iiwulfAdadtXLE0Zfv/4V6EJsJyRaPgdjs69eAc97Q BL1z7qcu8P0K65actYcyJltZX2cYMOjFa8GnuLhs+OojnKdbA3udyN/DPQJ1Ao8IxRjnS6 jIM0CGC9YLs2eb6/Lz9an56nBcEAMjqINQzCo7kRM0TYUHrbjnsJYfvZHqxmXoAQ6R3f1T YfxvjkjgRYjuPgjlZt+tdYYU1YvQeVtY5WWp2PX58yGgM6YUo9Ed6lRQwl06ISGl9hIGMq P5i5u1bzMGO4Npny0JOEFDhjQqejzyWQGe5b65Cf+vc7mQeKMaWvwWxg+MX4xw== 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=ff6ab85fc95a18da4d87d56afd82b484652ec3f6 commit ff6ab85fc95a18da4d87d56afd82b484652ec3f6 Author: Ed Maste AuthorDate: 2022-08-09 23:30:13 +0000 Commit: Ed Maste CommitDate: 2022-08-29 01:04:31 +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) --- 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 99c83b2196d8..dec69b434f7a 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;