aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2014-10-02 14:25:44 +1000
committerAlec Thomas <alec@swapoff.org>2014-10-02 14:27:55 +1000
commitf5450a881bf7e7719ea567855a86d4deae17bb14 (patch)
tree4a2660dcca7a48cceea7f600ad8e43065baaed2a
parent362e165b876067db0a09b6a9b893176e4909793a (diff)
Suppress unused variable warning. Fixes #49.
-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_;
};