mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
e5cc8496e3
commit
04cc0773d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 { \
|
||||
|
|
|
|||
Loading…
Reference in a new issue