From 643c5c2f82fc6d0fb4aae73f82a83d2bfc75023c Mon Sep 17 00:00:00 2001 From: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:42:20 -0500 Subject: [PATCH] Removed AZ_ENABLE_TRACING from Archive::GetPakPriority (#4741) The AZ_ENABLE_TRACING check was preventing the Archive System from using the sys_PakPriority value set from the CVar system Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> --- Code/Framework/AzFramework/AzFramework/Archive/Archive.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Code/Framework/AzFramework/AzFramework/Archive/Archive.cpp b/Code/Framework/AzFramework/AzFramework/Archive/Archive.cpp index e5a42aabbc..cd30b753b5 100644 --- a/Code/Framework/AzFramework/AzFramework/Archive/Archive.cpp +++ b/Code/Framework/AzFramework/AzFramework/Archive/Archive.cpp @@ -1924,13 +1924,11 @@ namespace AZ::IO ArchiveLocationPriority Archive::GetPakPriority() const { int pakPriority = aznumeric_cast(ArchiveVars{}.nPriority); -#if defined(AZ_ENABLE_TRACING) if (auto console = AZ::Interface::Get(); console != nullptr) { - AZ::GetValueResult getCvarResult = console->GetCvarValue("sys_PakPriority", pakPriority); + [[maybe_unused]] AZ::GetValueResult getCvarResult = console->GetCvarValue("sys_PakPriority", pakPriority); AZ_Error("Archive", getCvarResult == AZ::GetValueResult::Success, "Lookup of 'sys_PakPriority console variable failed with error %s", AZ::GetEnumString(getCvarResult)); } -#endif return static_cast(pakPriority); }