mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
clang: Fix the "expression result unused" warning.
This commit makes macro function "ASSIGN_CONTAINER()" evaluates to "(void)0". This is to avoid the 'clang' warning: "expression result unused", since most of time, the final evaluated value is not used. Signed-off-by: Alex Wang <alexw@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -132,7 +132,7 @@ struct cls_rule *cls_cursor_next(struct cls_cursor *, struct cls_rule *);
|
||||
for (ASSIGN_CONTAINER(RULE, cls_cursor_first(CURSOR), MEMBER); \
|
||||
(RULE != OBJECT_CONTAINING(NULL, RULE, MEMBER) \
|
||||
? ASSIGN_CONTAINER(NEXT, cls_cursor_next(CURSOR, &(RULE)->MEMBER), \
|
||||
MEMBER) \
|
||||
MEMBER), 1 \
|
||||
: 0); \
|
||||
(RULE) = (NEXT))
|
||||
|
||||
|
Reference in New Issue
Block a user