From 04cc0773d886159f1dbdb9a58bae4fb43b93d49d Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Fri, 10 Jun 2005 11:44:57 +0000 Subject: [PATCH] Make the default RB_AUGMENT() produce a 'do {} while (0)' instead of nothing. This prevents the compiler from complaining about empty if statements when compiled with higher WARN levels. --- sys/sys/tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 063b03ca95f..6682ec7762f 100644 --- a/sys/sys/tree.h +++ b/sys/sys/tree.h @@ -332,7 +332,7 @@ struct { \ } while (/*CONSTCOND*/ 0) #ifndef RB_AUGMENT -#define RB_AUGMENT(x) +#define RB_AUGMENT(x) do {} while (0) #endif #define RB_ROTATE_LEFT(head, elm, tmp, field) do { \