From: Alec Thomas Date: Thu, 2 Oct 2014 04:25:44 +0000 (+1000) Subject: Suppress unused variable warning. Fixes #49. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=f5450a881bf7e7719ea567855a86d4deae17bb14;p=clyne%2Fentityx.git Suppress unused variable warning. Fixes #49. --- 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_; };