From a02f82862e2d6794d090284806fb79b5a77c20ae Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 8 Feb 2011 11:50:15 -0800 Subject: [PATCH] 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. --- ovsdb/ovsdb-server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index 1dc9b7de..79fc8f93 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -242,8 +242,7 @@ parse_db_string_column(const struct ovsdb *db, *tablep = table; } -#if HAVE_OPENSSL -static const char * +static OVS_UNUSED const char * query_db_string(const struct ovsdb *db, const char *name) { if (!name || strncmp(name, "db:", 3)) { @@ -269,7 +268,6 @@ query_db_string(const struct ovsdb *db, const char *name) return NULL; } } -#endif /* HAVE_OPENSSL */ static struct ovsdb_jsonrpc_options * add_remote(struct shash *remotes, const char *target) -- 2.30.2