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.
This commit is contained in:
harti 2005-06-10 11:44:57 +00:00
parent 957be7650c
commit 9db8f12017

View File

@ -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 { \