Date: Wed, 10 Aug 2022 14:40:21 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7dc4d5118c02 - main - gpio: mark INVARIANTS variables as __diagused Message-ID: <202208101440.27AEeLLZ058460@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc commit 7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-08-09 23:30:13 +0000 Commit: Ed Maste <emaste@FreeBSD.org> 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208101440.27AEeLLZ058460>