mirror of
https://github.com/openvswitch/ovs
synced 2025-10-23 14:57:06 +00:00
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]
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user