|
|
@@ -524,10 +524,10 @@ ENTT_DEBUG_TEST(RegistryDeathTest, Storage) {
|
|
|
registry.storage<test::empty>("other"_hs);
|
|
|
|
|
|
ASSERT_DEATH(registry.storage<int>("other"_hs), "");
|
|
|
- ASSERT_DEATH(std::as_const(registry).storage<int>("other"_hs), "");
|
|
|
+ ASSERT_DEATH([[maybe_unused]] const auto *storage = std::as_const(registry).storage<int>("other"_hs), "");
|
|
|
|
|
|
ASSERT_DEATH(registry.storage<entt::entity>("other"_hs), "");
|
|
|
- ASSERT_DEATH(std::as_const(registry).storage<entt::entity>("other"_hs), "");
|
|
|
+ ASSERT_DEATH([[maybe_unused]] const auto *storage = std::as_const(registry).storage<entt::entity>("other"_hs), "");
|
|
|
}
|
|
|
|
|
|
TEST(Registry, Identifiers) {
|