Added [[maybe_unused]] to std::atexit() call to fix non-debug builds.
This commit is contained in:
parent
7d6fcc60fc
commit
cc20702249
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user