]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Suppress unused variable warning. Fixes #49.
authorAlec Thomas <alec@swapoff.org>
Thu, 2 Oct 2014 04:25:44 +0000 (14:25 +1000)
committerAlec Thomas <alec@swapoff.org>
Thu, 2 Oct 2014 04:27:55 +0000 (14:27 +1000)
entityx/Benchmarks_test.cc
entityx/Entity.h

index bf0430b55178550c69c3b11c94e4ee602a5f865d..e234340653039aea91568690dc60d51031b6cb55 100644 (file)
@@ -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();
   }
 }
index 28106151b929023a4bc26859d04f567046dff71f..85c8e796e2af35eb635d7b169b1a669feeb0f007 100644 (file)
@@ -231,8 +231,8 @@ struct BaseComponent {
 #else
     std::abort();
 #endif
-
   }
+
   static Family family_counter_;
 };