1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Merged in tillrathmann/tracy_for_multi_dll_projects (pull request #21)

Fixed compiler warning about unused variable in release builds
This commit is contained in:
Till Rathmann 2018-08-02 10:32:47 +00:00 committed by Bartosz Taudul
commit 09e63dafd6
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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