git: b2835fa22a22 - main - kobj: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Dec 2021 14:52:46 UTC
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));