Fix unused variable warnings.
This commit is contained in:
parent
7d8fea9871
commit
e2206edebc
@ -1696,11 +1696,9 @@ je_xallocx(void *ptr, size_t size, size_t extra, int flags)
|
||||
assert(malloc_initialized || IS_INITIALIZER);
|
||||
malloc_thread_init();
|
||||
|
||||
if (arena_ind != UINT_MAX) {
|
||||
arena_chunk_t *chunk;
|
||||
chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(ptr);
|
||||
if (arena_ind != UINT_MAX)
|
||||
arena = arenas[arena_ind];
|
||||
} else
|
||||
else
|
||||
arena = NULL;
|
||||
|
||||
old_usize = isalloc(ptr, config_prof);
|
||||
|
@ -79,11 +79,9 @@ tree_recurse(node_t *node, unsigned black_height, unsigned black_depth,
|
||||
|
||||
/* Red nodes must be interleaved with black nodes. */
|
||||
if (rbtn_red_get(node_t, link, node)) {
|
||||
node_t *t_node = rbtn_left_get(node_t, link, left_node);
|
||||
assert_false(rbtn_red_get(node_t, link, left_node),
|
||||
"Node should be black");
|
||||
t_node = rbtn_right_get(node_t, link, left_node);
|
||||
assert_false(rbtn_red_get(node_t, link, left_node),
|
||||
assert_false(rbtn_red_get(node_t, link, right_node),
|
||||
"Node should be black");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user