diff --git a/source/mijin/debug/stacktrace.cpp b/source/mijin/debug/stacktrace.cpp index 777195a..3ef4c83 100644 --- a/source/mijin/debug/stacktrace.cpp +++ b/source/mijin/debug/stacktrace.cpp @@ -122,7 +122,7 @@ bool initDbgHelp() MIJIN_NOEXCEPT 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."); // only copy in the end so we can still figure out if initialization was successful