You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/foo_mem-ext/src/virtual_memory.cpp: In function 'void foonathan::memory::virtual_memory_release(void*, std::size_t)':
src/foo_mem-ext/src/virtual_memory.cpp:50:10: error: unused variable 'result' [-Werror=unused-variable]
50 | auto result = VirtualFree(pages, 0u, MEM_RELEASE);
| ^~~~~~
The text was updated successfully, but these errors were encountered:
felixf4xu
changed the title
compiler error ( from warning) when compiled with FOONATHAN_MEMORY_ASSERT and FOONATHAN_MEMORY_ASSERT not defined
compiler error ( from warning) when compiled with FOONATHAN_MEMORY_DEBUG_ASSERT and FOONATHAN_MEMORY_ASSERT not defined
May 28, 2024
Hi,
When compiled with the default settings, neither
FOONATHAN_MEMORY_DEBUG_ASSERT
orFOONATHAN_MEMORY_ASSERT
is defined.so this line
#define FOONATHAN_MEMORY_ASSERT_MSG(Expr, Msg)
will be evaluated to empty code and then
memory/src/virtual_memory.cpp
Lines 50 to 51 in 016c9fb
will have a compiling error (originally warning):
The text was updated successfully, but these errors were encountered: