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:
Hartmut Brandt 2005-06-10 11:44:57 +00:00
parent e5cc8496e3
commit 04cc0773d8

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