From 95ac353ad6fc06a76d8f05c3e4ca058e1d6da61a Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Fri, 6 Nov 2020 16:50:01 -0500
Subject: [PATCH] Fix unused variable warning

---
 indra/llcommon/llprocess.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/indra/llcommon/llprocess.cpp b/indra/llcommon/llprocess.cpp
index abd151ac105..7e0d9ffe518 100644
--- a/indra/llcommon/llprocess.cpp
+++ b/indra/llcommon/llprocess.cpp
@@ -916,6 +916,7 @@ void LLProcess::status_callback(int reason, void* data, int status)
 	static_cast<LLProcess*>(data)->handle_status(reason, status);
 }
 
+#ifdef SHOW_DEBUG
 #define tabent(symbol) { symbol, #symbol }
 static struct ReasonCode
 {
@@ -931,11 +932,12 @@ static struct ReasonCode
 	tabent(APR_OC_REASON_RUNNING)
 };
 #undef tabent
+#endif
 
 // Object-oriented callback
 void LLProcess::handle_status(int reason, int status)
 {
-#if SHOW_DEBUG
+#ifdef SHOW_DEBUG
 	{
 		// This odd appearance of LL_DEBUGS is just to bracket a lookup that will
 		// only be performed if in fact we're going to produce the log message.
-- 
GitLab