From cc20702249bcd0086fdfa009fa321a5e05dcfe3a Mon Sep 17 00:00:00 2001
From: Patrick Wuttke
Date: Mon, 22 Sep 2025 21:39:46 +0200
Subject: [PATCH] Added [[maybe_unused]] to std::atexit() call to fix non-debug
builds.
---
source/mijin/debug/stacktrace.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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