Skip to content
Snippets Groups Projects
Commit 24b70de1 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix compilation warnings

parent 1f7cea34
No related branches found
Tags 1.7.5
No related merge requests found
......@@ -76,6 +76,7 @@ replication_init(void)
{
mempool_create(&replica_pool, &cord()->slabc,
sizeof(struct replica));
memset(&replicaset, 0, sizeof(replicaset));
replicaset_new(&replicaset);
vclock_create(&replicaset_vclock);
}
......@@ -183,6 +184,7 @@ void
replicaset_update(struct applier **appliers, int count)
{
replicaset_t uniq;
memset(&uniq, 0, sizeof(uniq));
replicaset_new(&uniq);
struct replica *replica, *next;
......
......@@ -83,7 +83,7 @@ space_new(struct space_def *def, struct rlist *key_list)
uint32_t index_id_max = 0;
uint32_t index_count = 0;
struct index_def *index_def;
struct index_def *pk = rlist_empty(key_list) ? NULL :
MAYBE_UNUSED struct index_def *pk = rlist_empty(key_list) ? NULL :
rlist_first_entry(key_list, struct index_def, link);
def = space_def_dup(def);
rlist_foreach_entry(index_def, key_list, link) {
......
......@@ -690,7 +690,7 @@ vy_tx_track(struct vy_tx *tx, struct vy_index *index,
struct tuple *key, bool is_gap)
{
struct txv *v;
uint32_t part_count = tuple_field_count(key);
MAYBE_UNUSED uint32_t part_count = tuple_field_count(key);
/* We do not support tracking range requests. */
assert(part_count >= index->cmp_def->part_count);
......
......@@ -268,7 +268,7 @@ test_basic()
continue;
}
}
uint32_t got;
uint32_t got = 0;
tuple_field_u32(res, 1, &got);
if (got != expect && expect_lsn != vy_stmt_lsn(res))
results_ok = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment