Fix unused variable warnings.

This commit is contained in:
Jason Evans 2014-01-21 14:59:13 -08:00
parent 7d8fea9871
commit e2206edebc
2 changed files with 3 additions and 7 deletions

View File

@ -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);

View File

@ -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");
}