suppress unused variables

This commit is contained in:
Lion Kortlepel 2020-12-24 00:42:39 +01:00
parent 639c94e0f2
commit 04cf7ca092
2 changed files with 2 additions and 2 deletions

View File

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

View File

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