From 9bf924c859478dd6ccb8c6cbc0302b81fb89f9ee Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Mon, 14 Dec 2015 15:03:23 -0800 Subject: [PATCH] lib: fix sparse warnings Fixes the following sparse warning messages: lib/ovsdb-idl.c:146:12: error: symbol 'table_updates_names' was not declared. Should it be static? lib/ovsdb-idl.c:147:12: error: symbol 'table_update_names' was not declared. Should it be static? lib/ovsdb-idl.c:148:12: error: symbol 'row_update_names' was not declared. Should it be static? Reported-by: Joe Stringer Signed-off-by: Andy Zhou Acked-by: Ben Pfaff Acked-by: Joe Stringer --- lib/ovsdb-idl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 0d02ae861..608693599 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -143,9 +143,9 @@ enum ovsdb_update_version { }; /* Name arrays indexed by 'enum ovsdb_update_version'. */ -const char *table_updates_names[] = {"table_updates", "table_updates2"}; -const char *table_update_names[] = {"table_update", "table_update2"}; -const char *row_update_names[] = {"row_update", "row_update2"}; +static const char *table_updates_names[] = {"table_updates", "table_updates2"}; +static const char *table_update_names[] = {"table_update", "table_update2"}; +static const char *row_update_names[] = {"row_update", "row_update2"}; static struct vlog_rate_limit syntax_rl = VLOG_RATE_LIMIT_INIT(1, 5); static struct vlog_rate_limit semantic_rl = VLOG_RATE_LIMIT_INIT(1, 5); -- 2.20.1