The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b2835fa22a22cf141f4ff00ae1f06ba6a4799de8

commit b2835fa22a22cf141f4ff00ae1f06ba6a4799de8
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2021-12-14 14:52:25 +0000
Commit:     Mateusz Guzik <[email protected]>
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));

Reply via email to