mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Fixed compiler warning about unused variable in release builds.
This commit is contained in:
parent
3b302315f9
commit
4968717313
@ -1815,7 +1815,8 @@ _memory_unmap_os(void* address, size_t size, size_t offset, int release) {
|
|||||||
#if PLATFORM_WINDOWS
|
#if PLATFORM_WINDOWS
|
||||||
if (!VirtualFree(address, release ? 0 : size, release ? MEM_RELEASE : MEM_DECOMMIT)) {
|
if (!VirtualFree(address, release ? 0 : size, release ? MEM_RELEASE : MEM_DECOMMIT)) {
|
||||||
DWORD err = GetLastError();
|
DWORD err = GetLastError();
|
||||||
assert("Failed to unmap virtual memory block" && err && 0);
|
(void)err;
|
||||||
|
assert("Failed to unmap virtual memory block" && 0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
MEMORY_UNUSED(release);
|
MEMORY_UNUSED(release);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user