aboutsummaryrefslogtreecommitdiff
path: root/lib/ovsdb-parser.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-09-13 13:15:48 -0700
committerEthan Jackson <ethan@nicira.com>2011-09-13 14:29:10 -0700
commita6d214f0055dc773750295a5db7cc5ca14bc5ce7 (patch)
treeae4b09aae4fcce03877523e441782fe9c5e20f87 /lib/ovsdb-parser.c
parent54a9cbc9637e3deba7e436aac398aaa9ba110892 (diff)
lib: Suppress comparison warnings in ovsdb libraries.
This patch fixes compiler warnings like the following: ./lib/ovsdb-types.h:171:5: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
Diffstat (limited to 'lib/ovsdb-parser.c')
-rw-r--r--lib/ovsdb-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ovsdb-parser.c b/lib/ovsdb-parser.c
index e1832a99..c46c237e 100644
--- a/lib/ovsdb-parser.c
+++ b/lib/ovsdb-parser.c
@@ -80,7 +80,7 @@ ovsdb_parser_member(struct ovsdb_parser *parser, const char *name,
return NULL;
}
- if ((value->type >= 0 && value->type < JSON_N_TYPES
+ if (((int) value->type >= 0 && value->type < JSON_N_TYPES
&& types & (1u << value->type))
|| (types & OP_ID && value->type == JSON_STRING
&& ovsdb_parser_is_id(value->u.string)))