From nobody Sun Aug 21 11:28:56 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 4M9YCs2DYYz4ZYT9; Sun, 21 Aug 2022 11:28:57 +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 4M9YCr6jYNz3w7f; Sun, 21 Aug 2022 11:28:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081336; 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=01g5u4n7MbWkAkUQM7qfllNaF7ucWG9PKqK3iCfEFqI=; b=uBHLVJ+rNhogxVmc53sEP0+cksKDpgI58l599ZuUyDJxdesI9WD/4fauqeIvjFmcFf0gEo 02xOQC3AYjOS3C1UnTbGGSQDXKLZMsyyNrO+zYpqBdeyGZBuKv+fu4zJ0wmqL8Q+QhMcU9 Hsie6+e2zVf8fZcITk6Ot0p51/VAhwpDbN7Axwx+Jp5bT1p63pIvTBIIYz4thDpeAF54/l dqSuUF+jEnHxp5Vq1sOG+dwvCsAmPHXg73wmi3LZw89Q+OgrRYvli1Y9g2iqEgzQYw5HSr gTcj1+j4l2sN8mMbsb+B7CAo3iotbnttcQM0RN65nK7HxqbtT5uS45DSb220pg== 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 4M9YCr5jTFz1890; Sun, 21 Aug 2022 11:28:56 +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 27LBSulI004039; Sun, 21 Aug 2022 11:28:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBSu9F004038; Sun, 21 Aug 2022 11:28:56 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:28:56 GMT Message-Id: <202208211128.27LBSu9F004038@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 39a1b7009003 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 39a1b7009003c2e89fc6dbf768035d92186a194d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081336; 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=01g5u4n7MbWkAkUQM7qfllNaF7ucWG9PKqK3iCfEFqI=; b=T2BVra2ArbCpOza7T394HLvpK2HAfeT5dyfxuVPvkMGiIwSRQ3UcVMDUzV5NBHyoBrHYgS x9qY/UNYRzUu5Mj34hFUtZ260/rioRDq9s0rGawBLi1llEQB+xrdb7ZnJPtEVdrt45TdRE PZJiMNv0QEa6GJHQMfqDgKo/hMVhjkMfi+Yge3JveMjQIlB6FqivamedzQyJeicODDc3NF WYJ7WOidxYWVrQaG+NWQZckfSXjd7Xfrs8oCbDhMWMvponbXU6geCC7OHXrJIthX0HOyJd fXgjvpt2234KRJVfCT5Y4M6hZSwb8KCoq49H0C4Ke9PunP15eKk7lx48kqbckw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081336; a=rsa-sha256; cv=none; b=eyMybVd6Ba/PU1VSoy/3U5ldtJBPILM2MkQPsWMD5KJlmS2VB+Ppwfdtrm4rxxVHnf4vLH 39cZULZFE+B521COA3RCgreEwfg2wf0Q+r90R+PwDkgBQtbQ0c8pBt+McOGHJR6XWkTI7q G+BNz8B1e3gtFhNB0lv2SamI12dQ+ulEsdAQ4PneIctXTUNVT1KbZ3Sv9KoU+yXKrNE50O 8H3UZd0wTHHWRlcF7GkgGXK+5jDW39KqYw4KDvnmmci+ZD5pu1fmRJNusCMEpBO+gTywMQ wGyJCkmJwa6B2v3rN2lEmhTSzhaauBPVa+vzjNl4WfbvIkPSJhk1TK0Sc9eQKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=39a1b7009003c2e89fc6dbf768035d92186a194d commit 39a1b7009003c2e89fc6dbf768035d92186a194d Author: Dimitry Andric AuthorDate: 2022-08-14 12:12:42 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:10:49 +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 (cherry picked from commit 6e62d9a5a56c0cb8d314998e163096a454c84620) --- 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 15d0848fc020..99c83b2196d8 100644 --- a/sys/dev/gpio/gpioc.c +++ b/sys/dev/gpio/gpioc.c @@ -319,7 +319,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;