From f5450a881bf7e7719ea567855a86d4deae17bb14 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Thu, 2 Oct 2014 14:25:44 +1000 Subject: Suppress unused variable warning. Fixes #49. --- entityx/Benchmarks_test.cc | 2 ++ entityx/Entity.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/entityx/Benchmarks_test.cc b/entityx/Benchmarks_test.cc index bf0430b..e234340 100644 --- a/entityx/Benchmarks_test.cc +++ b/entityx/Benchmarks_test.cc @@ -117,5 +117,7 @@ TEST_CASE_METHOD(BenchmarkFixture, "TestEntityIteration") { ComponentHandle position; for (auto e : em.entities_with_components(position)) { + (void)e; + position.valid(); } } diff --git a/entityx/Entity.h b/entityx/Entity.h index 2810615..85c8e79 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -231,8 +231,8 @@ struct BaseComponent { #else std::abort(); #endif - } + static Family family_counter_; }; -- cgit v1.2.3