mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-23 15:16:26 +01:00
mem management: remove warning
This commit is contained in:
parent
9db15e96ac
commit
4625ad2992
@ -214,6 +214,7 @@ void gree(void* ptr, bool already_freed) {
|
|||||||
memory = free_memory(ptr, memory, already_freed);
|
memory = free_memory(ptr, memory, already_freed);
|
||||||
pthread_mutex_unlock(&memory_lock);
|
pthread_mutex_unlock(&memory_lock);
|
||||||
#else
|
#else
|
||||||
|
(void)already_freed;
|
||||||
free(ptr);
|
free(ptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
@ -214,6 +214,7 @@ void gree(void* ptr, bool already_freed) {
|
|||||||
memory = free_memory(ptr, memory, already_freed);
|
memory = free_memory(ptr, memory, already_freed);
|
||||||
pthread_mutex_unlock(&memory_lock);
|
pthread_mutex_unlock(&memory_lock);
|
||||||
#else
|
#else
|
||||||
|
(void)already_freed;
|
||||||
free(ptr);
|
free(ptr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user