From dfb44aec706532cd26a1fcc6415cc7fdadec9907 Mon Sep 17 00:00:00 2001
From: Brad Linden <brad@lindenlab.com>
Date: Thu, 2 Nov 2023 17:28:10 -0700
Subject: [PATCH] Fix build error from overly fancy tracy macro usage that
 nobody else is using for DRTVWR-559

---
 indra/llcommon/llprofiler.h        | 1 +
 indra/newview/llinventorymodel.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/indra/llcommon/llprofiler.h b/indra/llcommon/llprofiler.h
index 736a069f497..af5e5777bf6 100644
--- a/indra/llcommon/llprofiler.h
+++ b/indra/llcommon/llprofiler.h
@@ -114,6 +114,7 @@ extern thread_local bool gProfilerEnabled;
         #define LL_PROFILER_SET_THREAD_NAME( name )      (void)(name)
         #define LL_RECORD_BLOCK_TIME(name)                                                                  const LLTrace::BlockTimer& LL_GLUE_TOKENS(block_time_recorder, __LINE__)(LLTrace::timeThisBlock(name)); (void)LL_GLUE_TOKENS(block_time_recorder, __LINE__);
         #define LL_PROFILE_ZONE_NAMED(name)             // LL_PROFILE_ZONE_NAMED is a no-op when Tracy is disabled
+        #define LL_PROFILE_ZONE_NAMED_COLOR(name,color) // LL_PROFILE_ZONE_NAMED_COLOR is a no-op when Tracy is disabled
         #define LL_PROFILE_ZONE_SCOPED                  // LL_PROFILE_ZONE_SCOPED is a no-op when Tracy is disabled
         #define LL_PROFILE_ZONE_COLOR(name,color)       // LL_RECORD_BLOCK_TIME(name)
 
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 4137bfa7880..74a5442586f 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -3323,7 +3323,7 @@ bool LLInventoryModel::loadFromFile(const std::string& filename,
 									LLInventoryModel::changed_items_t& cats_to_update,
 									bool &is_cache_obsolete)
 {
-    LL_PROFILE_ZONE_NAMED_COLOR("inventory load from file", 0xFF1111);
+    LL_PROFILE_ZONE_NAMED("inventory load from file");
 
 	if(filename.empty())
 	{
-- 
GitLab