提交 7df6cca7 编写于 作者: A Alessio Centazzo

Fix compiler warning

Fix compiler complaint about declaration after statement
上级 75e88a9b
......@@ -256,13 +256,15 @@ static void release_memory(void* mem)
malloc_count--;
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
size_t block_size;
{
size_t block_size;
block_size = unity_size_round_up(guard->size + sizeof(end));
block_size = unity_size_round_up(guard->size + sizeof(end));
if (mem == unity_heap + heap_index - block_size)
{
heap_index -= (sizeof(Guard) + block_size);
if (mem == unity_heap + heap_index - block_size)
{
heap_index -= (sizeof(Guard) + block_size);
}
}
#else
UNITY_FIXTURE_FREE(guard);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册