mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
suppress unused variables
This commit is contained in:
parent
639c94e0f2
commit
04cf7ca092
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
// ZeroMemory is just a {0} or a memset(addr, 0, len), and it's a macro on MSVC
|
// 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) {
|
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);
|
Assert(res != nullptr);
|
||||||
}
|
}
|
||||||
// provides unix equivalent of closesocket call in win32
|
// provides unix equivalent of closesocket call in win32
|
||||||
|
@ -34,7 +34,7 @@ int main(int argc, char* argv[]) {
|
|||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
DebugPrintTID();
|
DebugPrintTID();
|
||||||
// curl needs to be initialized to properly deallocate its resources later
|
// 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);
|
Assert(ret == CURLE_OK);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
std::thread t1(loop);
|
std::thread t1(loop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user