From a8b2d08114ac2c5b138cf2ca69154dfcd2e5f3a1 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 21 Mar 2020 13:09:41 -0400
Subject: [PATCH] Nop out dumpStack macro in release builds

---
 indra/llcommon/llcallstack.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indra/llcommon/llcallstack.h b/indra/llcommon/llcallstack.h
index b12b5619857..edc0b6c6839 100644
--- a/indra/llcommon/llcallstack.h
+++ b/indra/llcommon/llcallstack.h
@@ -79,6 +79,7 @@ struct LLContextStatus
 
 LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& context_status);
 
+#ifdef ENABLE_DEBUG
 #define dumpStack(tag) \
     static const bool enable_log = debugLoggingEnabled(tag); \
     if (enable_log) \
@@ -86,3 +87,6 @@ LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& c
         LLCallStack cs; \
         LL_DEBUGS(tag) << "STACK:\n" << "====================\n" << cs << "====================" << LL_ENDL; \
     }
+#else
+#define dumpStack(tag)
+#endif
-- 
GitLab