mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
Fix compiler warning
Fix compiler complaint about declaration after statement
This commit is contained in:
@@ -256,6 +256,7 @@ static void release_memory(void* mem)
|
|||||||
|
|
||||||
malloc_count--;
|
malloc_count--;
|
||||||
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
|
#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));
|
||||||
@@ -264,6 +265,7 @@ static void release_memory(void* mem)
|
|||||||
{
|
{
|
||||||
heap_index -= (sizeof(Guard) + block_size);
|
heap_index -= (sizeof(Guard) + block_size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
UNITY_FIXTURE_FREE(guard);
|
UNITY_FIXTURE_FREE(guard);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user