git: 14696d81f163 - main - rb_tree: silence unused function warnings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Sep 2022 08:37:44 UTC
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,)