1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Fix compiler warning

Fix compiler complaint about declaration after statement
This commit is contained in:
Alessio Centazzo
2019-09-29 22:01:03 -07:00
parent 75e88a9bc4
commit 7df6cca794

View File

@@ -256,6 +256,7 @@ static void release_memory(void* mem)
malloc_count--;
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
{
size_t block_size;
block_size = unity_size_round_up(guard->size + sizeof(end));
@@ -264,6 +265,7 @@ static void release_memory(void* mem)
{
heap_index -= (sizeof(Guard) + block_size);
}
}
#else
UNITY_FIXTURE_FREE(guard);
#endif