mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +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:
@@ -168,7 +168,7 @@ struct json *ovsdb_type_to_json(const struct ovsdb_type *);
|
||||
static inline bool
|
||||
ovsdb_atomic_type_is_valid(enum ovsdb_atomic_type atomic_type)
|
||||
{
|
||||
return atomic_type >= 0 && atomic_type < OVSDB_N_TYPES;
|
||||
return (int) atomic_type >= 0 && atomic_type < OVSDB_N_TYPES;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
Reference in New Issue
Block a user