Clang reports variable 'error' never been used. Fix by returning error when table_update->type != JSON_OBJECT.
Signed-off-by: William Tu <u9012...@gmail.com> --- ovsdb/replication.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/replication.c b/ovsdb/replication.c index 3d1bc33..a5f94da 100644 --- a/ovsdb/replication.c +++ b/ovsdb/replication.c @@ -470,6 +470,7 @@ process_table_update(struct json *table_update, const char *table_name, if (table_update->type != JSON_OBJECT) { error = ovsdb_error("Not a JSON object", "<table-update> for table is not object"); + return error; } table = ovsdb_get_table(database, table_name); -- 2.5.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev