Fixed compiler warning about unused variable in release builds.

This commit is contained in:
Till Rathmann 2018-08-02 11:45:15 +02:00
parent 3b302315f9
commit 4968717313
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