From nobody Sun Aug 14 12:12:59 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 4M5GWw1FN6z4Z3Wl; Sun, 14 Aug 2022 12:13:00 +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 4M5GWw0jh3z3C0t; Sun, 14 Aug 2022 12:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660479180; 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=evVnuxXp1rV9VdgsioJdpAZGwmqxSwN+x9BddQefd70=; b=dkRbYB4Rjh6svee0F/ZCpYTSDwpVdBUqCmlukTlvAsLipRRLiK067x4fM6tx5wZRFZQPYr IwDRl94nCfsV6GnW1fQ0jvXsfpCSG6ZERzICh1hEopjwf/poInXznD2pRuxrWhinWHP/5e 2o6gk/J9kutwA38VQsnhPaFy/ntruvMlZDyOmylTnxC7OtBGq6WUu1jGra1WxIujtCqMuM 1DAvsTQkJZ8A4q64rhia+KI4/jzGW5kzlr6283ZBM8+54Acl+4D3IbplnIhQIXwKpWOhhy iOEABB0hckFtBMAm3mVMwREYCNd6y34H3RsgCRLCjl2d3VhDhgNHWH9YJxBvFw== 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 4M5GWv6rPBzq9w; Sun, 14 Aug 2022 12:12:59 +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 27ECCxeh037743; Sun, 14 Aug 2022 12:12:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27ECCxIK037742; Sun, 14 Aug 2022 12:12:59 GMT (envelope-from git) Date: Sun, 14 Aug 2022 12:12:59 GMT Message-Id: <202208141212.27ECCxIK037742@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 6e62d9a5a56c - main - gpio: mark more 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e62d9a5a56c0cb8d314998e163096a454c84620 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660479180; 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=evVnuxXp1rV9VdgsioJdpAZGwmqxSwN+x9BddQefd70=; b=BzlGWi5ENre5PbnXyJol3koTGIiuaNfavkVj/zVJbkSGiAYQ4JMVGUNBukihbszbdYegUs gRG45J9Yerf75stL93Se8bXssIKJSWFKUWgjseh6ANXVoCxays0t//tzD168ADiSGl9XlL +KCbkFmLGYU6npwQJ8qp67Be658+7w5oZ32YEkl3mIjSfHhPhPEataL+PIRln6NhHfGY5j wZlbOwpCxce8bl4vtPBaNwNYHdLeGP/izmjVSQPoKUCzgqYF5Lyn6tmHXzcTOcYyHdlSLe YV4ubmMpIvzocYi0kwyo3tH9oFPuwPklJgVp08IJO2H3Wd3T2+tykr5woVU9dA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660479180; a=rsa-sha256; cv=none; b=jtBbFwwyemmGQrpUJ9pBWnQiFQ02g0RwkaWKQMNfhmT0XtS21tC0KYAHiiVlWg0gtAa48X mRhnAJpcs/3O4NHzS6gG6WQoVkBDJTSI+TJPwUBnyHe5M7QkEpPNPEzD3dosIC9y89PXA2 /KdOAKo2YlSRa8hYf05Jfh9nf2ZuFjsqqwKYdaM5cXAtl1jwHRR2ixxG7SLE0SVvutEtSS zHnwprfSeptm4VyiUFcYOItOTShiQOtArVstNmegWSHGwu4xZGkZ9yEo3mpJ56Uv5GcWBr vCOsIFAxiGpehsJys202G42fW736aP5KPY5RDX3WUeMfMLyAt2Iq0bUDDctBEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6e62d9a5a56c0cb8d314998e163096a454c84620 commit 6e62d9a5a56c0cb8d314998e163096a454c84620 Author: Dimitry Andric AuthorDate: 2022-08-14 12:12:42 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 12:12:42 +0000 gpio: mark more INVARIANTS variables as __diagused Mark another set of variables that are only used in INVARIANTS builds, which otherwise result in set-but-not-used warnings. Fixes: 7dc4d5118c02 MFC after: 3 days --- sys/dev/gpio/gpioc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c index 4c6270f80cb9..0d89107daf91 100644 --- a/sys/dev/gpio/gpioc.c +++ b/sys/dev/gpio/gpioc.c @@ -320,7 +320,8 @@ gpioc_detach_priv_pin(struct gpioc_cdevpriv *priv, { struct gpioc_privs *priv_link, *priv_link_temp; struct gpioc_pins *pin_link, *pin_link_temp; - unsigned int consistency_a, consistency_b; + unsigned int consistency_a __diagused; + unsigned int consistency_b __diagused; consistency_a = 0; consistency_b = 0;