Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2022 08:37:44 GMT
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 14696d81f163 - main - rb_tree: silence unused function warnings
Message-ID:  <202209180837.28I8biPg030124@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dougm:

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

commit 14696d81f163dacfcdaf42171556ebfd15416fb9
Author:     Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2022-09-18 08:34:47 +0000
Commit:     Doug Moore <dougm@FreeBSD.org>
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:    mjguzik@gmail.com
    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,)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209180837.28I8biPg030124>