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 Perches <j...@perches.com> See: https://travis-ci.org/openvswitch/ovs/jobs/96737772#L870 Signed-off-by: Andy Zhou <az...@ovn.org> --- 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 0d02ae8..6086935 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); -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev