mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
ovsdb: Fix unused warning.
"warning: 'parse_db_string_column' defined but not used" This commit fixes the above warning when compiling on systems which do not have SSL support. It also causes query_db_string() to always be compiled on these systems as it is not SSL specific and may be useful in the future.
This commit is contained in:
@@ -242,8 +242,7 @@ parse_db_string_column(const struct ovsdb *db,
|
|||||||
*tablep = table;
|
*tablep = table;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_OPENSSL
|
static OVS_UNUSED const char *
|
||||||
static const char *
|
|
||||||
query_db_string(const struct ovsdb *db, const char *name)
|
query_db_string(const struct ovsdb *db, const char *name)
|
||||||
{
|
{
|
||||||
if (!name || strncmp(name, "db:", 3)) {
|
if (!name || strncmp(name, "db:", 3)) {
|
||||||
@@ -269,7 +268,6 @@ query_db_string(const struct ovsdb *db, const char *name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* HAVE_OPENSSL */
|
|
||||||
|
|
||||||
static struct ovsdb_jsonrpc_options *
|
static struct ovsdb_jsonrpc_options *
|
||||||
add_remote(struct shash *remotes, const char *target)
|
add_remote(struct shash *remotes, const char *target)
|
||||||
|
Reference in New Issue
Block a user