From nobody Tue Dec 14 14:52:46 2021 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 8E31218F43D1; Tue, 14 Dec 2021 14:52:46 +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 4JD1ZQ28mlz3BnS; Tue, 14 Dec 2021 14:52:46 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 2B05E2400; Tue, 14 Dec 2021 14:52:46 +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 1BEEqkZX047447; Tue, 14 Dec 2021 14:52:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEqkMZ047446; Tue, 14 Dec 2021 14:52:46 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:52:46 GMT Message-Id: <202112141452.1BEEqkMZ047446@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: b2835fa22a22 - main - kobj: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2835fa22a22cf141f4ff00ae1f06ba6a4799de8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639493566; 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=diRjPniXrP9HH6YALaw1Lek0L7lSOeS1BL8c08kNNvs=; b=EnT5AA3XCnLUKfsNgcjDwapdeEPgfCdWUapAuUDNbpNrW7TqZ2RDxZ57bu+reC9DG9z650 wXvCur/G/82Pof+arVjDG2x31B6jX7UVzzpsI/cr+zVZeQnkV+BWbgHRw486ZbOAGaatuS /5LAP7G/3XiaSM74wXlIwRsUhslQb7VR9CxlOAX8qpjwiMDCPv608IfaBdR3/TKz2YlJ1g WY1GuwwSkEpZBIxzxE8FpwV+owIbFNYGVlzSCVBgF2R3vQd97lMcdK6UzdG9fOZZAbgskU 6121DGJ3CF/9DPduW8scFVUtqOnEKzheYOzvH5YDlK1CGCgYRg+EbpmtTANBRw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639493566; a=rsa-sha256; cv=none; b=qPHraNc6jN3eGMn1iLCJNYmQaT5A5r8KrI6WTodOrHupMV2ldcPyQx+wIsOl6u6VLXggRa HwJ1i7bWD3W+hKCBsVyowe87cGA6wTZqbkYZpbW3yz5LesfIea1v0TBdKBI/iPArI1t7A5 cOF0PJgCLIO+sTkDSiEh+ARIC46CuWFcEaWETKs9B77HRLBIQZxF+2g4+QNkovO/7a8UiD FOsV4OJ4dEUB7HC1rJN/kAZMcbqV8BTL+z5uZj3GkBDNcgxcqkp9vePtURJ3MeyQzriBvO UgTWA2OjIjLgvUrxa8GvMQ+gNHTPV9luL/muZTuH13sJDgMDa4SxFjuGAHbJUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b2835fa22a22cf141f4ff00ae1f06ba6a4799de8 commit b2835fa22a22cf141f4ff00ae1f06ba6a4799de8 Author: Mateusz Guzik AuthorDate: 2021-12-14 14:52:25 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:52:25 +0000 kobj: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/subr_kobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c index 17d23336e333..1596cb3ae212 100644 --- a/sys/kern/subr_kobj.c +++ b/sys/kern/subr_kobj.c @@ -156,7 +156,7 @@ kobj_class_compile1(kobj_class_t cls, int mflags) void kobj_class_compile(kobj_class_t cls) { - int error; + int error __diagused; error = kobj_class_compile1(cls, M_WAITOK); KASSERT(error == 0, ("kobj_class_compile1 returned %d", error));