From 73bb7c71b49acdc0b94a80d40b7acc8f310599d2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 8 May 2020 17:12:56 -0400 Subject: [PATCH] CGameArea: Make use of [[maybe_unused]] in WarmupShaders() Same behavior, but silences compilation warnings about unused locals. --- Runtime/World/CGameArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/World/CGameArea.cpp b/Runtime/World/CGameArea.cpp index c1853ca56..b89262d73 100644 --- a/Runtime/World/CGameArea.cpp +++ b/Runtime/World/CGameArea.cpp @@ -1199,7 +1199,7 @@ void CGameArea::SetAreaAttributes(const CScriptAreaAttributes* areaAttributes) { bool CGameArea::CAreaObjectList::IsQualified(const CEntity& ent) const { return (ent.GetAreaIdAlways() == x200c_areaIdx); } void CGameArea::WarmupShaders(const SObjectTag& mreaTag) { // Calling this version of the constructor performs warmup implicitly - CGameArea area(mreaTag.id); + [[maybe_unused]] CGameArea area(mreaTag.id); } } // namespace urde