diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-09-13 13:15:48 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-09-13 14:29:10 -0700 |
commit | a6d214f0055dc773750295a5db7cc5ca14bc5ce7 (patch) | |
tree | ae4b09aae4fcce03877523e441782fe9c5e20f87 /lib/ovsdb-parser.c | |
parent | 54a9cbc9637e3deba7e436aac398aaa9ba110892 (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.c | 2 |
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))) |