Mark benchmark state variables in for loops as unused in benchmarks

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2022-02-10 13:00:49 -08:00
parent 36487c1588
commit 664403c5de
38 changed files with 572 additions and 572 deletions
@@ -27,7 +27,7 @@ namespace Benchmark
auto& prefabDom = m_prefabSystemComponent->FindTemplateDom(instance->GetTemplateId());
for (auto _ : state)
for ([[maybe_unused]] auto _ : state)
{
// Create a vector to store spawnables so that they don't get destroyed immediately after construction.
AZStd::vector<AZStd::unique_ptr<AzFramework::Spawnable>> spawnables;