Added [[maybe_unused]] to std::atexit() call to fix non-debug builds.

This commit is contained in:
Patrick Wuttke 2025-09-22 21:39:46 +02:00
parent 7d6fcc60fc
commit cc20702249

View File

@ -122,7 +122,7 @@ bool initDbgHelp() MIJIN_NOEXCEPT
return false; return false;
} }
const int result = std::atexit(&cleanupDbgHelp); [[maybe_unused]] const int result = std::atexit(&cleanupDbgHelp);
MIJIN_ASSERT(result == 0, "Error registering DbgHelp cleanup handler."); MIJIN_ASSERT(result == 0, "Error registering DbgHelp cleanup handler.");
// only copy in the end so we can still figure out if initialization was successful // only copy in the end so we can still figure out if initialization was successful