The branch main has been updated by dougm:

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

commit 14696d81f163dacfcdaf42171556ebfd15416fb9
Author:     Doug Moore <[email protected]>
AuthorDate: 2022-09-18 08:34:47 +0000
Commit:     Doug Moore <[email protected]>
CommitDate: 2022-09-18 08:34:47 +0000

    rb_tree: silence unused function warnings
    
    With DIAGNOSTIC set a kernel build generates warnings about the
    defined-but-unused RB_RANK method. Don't set _RB_DIAGNOSTIC
    automatically, to silence these warnings.
    
    Reported by:    [email protected]
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D36617
---
 sys/sys/tree.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/sys/tree.h b/sys/sys/tree.h
index 7a574eff3aea..d2c9cfcddd90 100644
--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -398,10 +398,6 @@ struct {                                                   
        \
        RB_SET_PARENT(elm, tmp, field);                                 \
 } while (/*CONSTCOND*/ 0)
 
-#if defined(_KERNEL) && defined(DIAGNOSTIC) && !defined(_RB_DIAGNOSTIC)
-#define _RB_DIAGNOSTIC 1
-#endif
-
 /* Generates prototypes and inline functions */
 #define        RB_PROTOTYPE(name, type, field, cmp)                            
\
        RB_PROTOTYPE_INTERNAL(name, type, field, cmp,)

Reply via email to