Date: Tue, 14 Dec 2021 14:52:46 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: b2835fa22a22 - main - kobj: plug set-but-not-used vars Message-ID: <202112141452.1BEEqkMZ047446@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b2835fa22a22cf141f4ff00ae1f06ba6a4799de8 commit b2835fa22a22cf141f4ff00ae1f06ba6a4799de8 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-12-14 14:52:25 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> 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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112141452.1BEEqkMZ047446>