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