aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--entityx/Benchmarks_test.cc2
-rw-r--r--entityx/Entity.h2
2 files changed, 3 insertions, 1 deletions
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> position;
for (auto e : em.entities_with_components<Position>(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_;
};