foonathan/memory

Possible error on small_free_list::min_block_size

MiguelCompany opened this issue · 0 comments

This method gives warning 'number_of_nodes': unreferenced formal parameter

static constexpr std::size_t min_block_size(std::size_t node_size,
std::size_t number_of_nodes)
{
return chunk_count(node_size)
* (chunk_memory_offset + chunk_max_nodes * node_size);
}

This leads me to think that line 66 should use number_of_nodes instead of node_size