diff --git a/include/UnixCompat.h b/include/UnixCompat.h index ad8529b..ffbc15e 100644 --- a/include/UnixCompat.h +++ b/include/UnixCompat.h @@ -13,7 +13,7 @@ // ZeroMemory is just a {0} or a memset(addr, 0, len), and it's a macro on MSVC inline void ZeroMemory([[maybe_unused]] void* dst, [[maybe_unused]] size_t len) { - auto res = std::memset(dst, 0, len); + [[maybe_unused]] auto res = std::memset(dst, 0, len); Assert(res != nullptr); } // provides unix equivalent of closesocket call in win32 diff --git a/src/main.cpp b/src/main.cpp index cf867e7..c08ca6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,7 +34,7 @@ int main(int argc, char* argv[]) { #endif // WIN32 DebugPrintTID(); // curl needs to be initialized to properly deallocate its resources later - auto ret = curl_global_init(CURL_GLOBAL_DEFAULT); + [[maybe_unused]] auto ret = curl_global_init(CURL_GLOBAL_DEFAULT); Assert(ret == CURLE_OK); #ifdef DEBUG std::thread t1(loop);