Procházet zdrojové kódy

test: avoid unused variables

Michele Caini před 1 rokem
rodič
revize
6d03f4d6f2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      test/entt/entity/registry.cpp

+ 2 - 2
test/entt/entity/registry.cpp

@@ -535,8 +535,8 @@ TEST(Registry, StorageReset) {
     using namespace entt::literals;
     using namespace entt::literals;
 
 
     entt::registry registry{};
     entt::registry registry{};
-    auto &storage = registry.storage<int>();
-    auto &other = registry.storage<int>("other"_hs);
+    registry.storage<int>();
+    registry.storage<int>("other"_hs);
 
 
     ASSERT_NE(std::as_const(registry).storage<int>(), nullptr);
     ASSERT_NE(std::as_const(registry).storage<int>(), nullptr);
     ASSERT_NE(registry.storage("other"_hs), nullptr);
     ASSERT_NE(registry.storage("other"_hs), nullptr);