mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +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 (!VirtualFree(address, release ? 0 : size, release ? MEM_RELEASE : MEM_DECOMMIT)) {
|
||||
DWORD err = GetLastError();
|
||||
assert("Failed to unmap virtual memory block" && err && 0);
|
||||
(void)err;
|
||||
assert("Failed to unmap virtual memory block" && 0);
|
||||
}
|
||||
#else
|
||||
MEMORY_UNUSED(release);
|
||||
|
@ -1,4 +1,4 @@
|
||||
#if defined _MSC_VER || defined __CYGWIN__ || defined _WIN32
|
||||
#if defined _MSC_VER || defined __CYGWIN__ || defined _WIN32
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user