aboutsummaryrefslogtreecommitdiff
path: root/lib/classifier.h
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2013-07-22 09:19:57 -0700
committerBen Pfaff <blp@nicira.com>2013-07-22 12:47:59 -0700
commit33e191a01b2c5aad1e97c109e66dec4b4d280ef6 (patch)
tree2bd6472602bc7f2de9a90c2108435d0252ab7a09 /lib/classifier.h
parent55d2690646769467b6d26ad55516ff6eeb12869d (diff)
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>
Diffstat (limited to 'lib/classifier.h')
-rw-r--r--lib/classifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classifier.h b/lib/classifier.h
index 09b3a131..a14a24d2 100644
--- a/lib/classifier.h
+++ b/lib/classifier.h
@@ -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))