diff options
author | harti <harti@FreeBSD.org> | 2005-06-10 11:44:57 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-06-10 11:44:57 +0000 |
commit | 9db8f12017c2f55fa932edca2184e5ac3535e501 (patch) | |
tree | fa22ce33fdd6444c27c758affcd99ea6150e1819 /sys/sys/tree.h | |
parent | 957be7650c67ca472f64c95f9a004e9c60d2baee (diff) | |
download | FreeBSD-src-9db8f12017c2f55fa932edca2184e5ac3535e501.zip FreeBSD-src-9db8f12017c2f55fa932edca2184e5ac3535e501.tar.gz |
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.
Diffstat (limited to 'sys/sys/tree.h')
-rw-r--r-- | sys/sys/tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 063b03c..6682ec7 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 { \ |