CGameArea: Make use of [[maybe_unused]] in WarmupShaders()

Same behavior, but silences compilation warnings about unused locals.
This commit is contained in:
Lioncash 2020-05-08 17:12:56 -04:00
parent fef9e6ff2d
commit 73bb7c71b4
1 changed files with 1 additions and 1 deletions

View File

@ -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