From db22dd8e6931091155cabc1a2f4ef9cdb468a596 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 30 Sep 2024 09:32:07 +0200 Subject: [PATCH] meta: suppress (wrong) warnings by g++ --- test/entt/meta/meta_data.cpp | 4 ++-- test/entt/meta/meta_func.cpp | 4 ++-- test/entt/meta/meta_type.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/entt/meta/meta_data.cpp b/test/entt/meta/meta_data.cpp index ceb54a9a7..9ae154dc7 100644 --- a/test/entt/meta/meta_data.cpp +++ b/test/entt/meta/meta_data.cpp @@ -224,8 +224,8 @@ TEST_F(MetaData, Custom) { ENTT_DEBUG_TEST_F(MetaDataDeathTest, Custom) { using namespace entt::literals; - ASSERT_DEATH([[maybe_unused]] const int &value = entt::resolve().data("i"_hs).custom(), ""); - ASSERT_DEATH([[maybe_unused]] const char &value = entt::resolve().data("j"_hs).custom(), ""); + ASSERT_DEATH([[maybe_unused]] int value = entt::resolve().data("i"_hs).custom(), ""); + ASSERT_DEATH([[maybe_unused]] char value = entt::resolve().data("j"_hs).custom(), ""); } TEST_F(MetaData, Const) { diff --git a/test/entt/meta/meta_func.cpp b/test/entt/meta/meta_func.cpp index 46e858d26..84119b0ec 100644 --- a/test/entt/meta/meta_func.cpp +++ b/test/entt/meta/meta_func.cpp @@ -241,8 +241,8 @@ TEST_F(MetaFunc, Custom) { ENTT_DEBUG_TEST_F(MetaFuncDeathTest, Custom) { using namespace entt::literals; - ASSERT_DEATH([[maybe_unused]] const int &value = entt::resolve().func("g"_hs).custom(), ""); - ASSERT_DEATH([[maybe_unused]] const char &value = entt::resolve().func("h"_hs).custom(), ""); + ASSERT_DEATH([[maybe_unused]] int value = entt::resolve().func("g"_hs).custom(), ""); + ASSERT_DEATH([[maybe_unused]] char value = entt::resolve().func("h"_hs).custom(), ""); } TEST_F(MetaFunc, Const) { diff --git a/test/entt/meta/meta_type.cpp b/test/entt/meta/meta_type.cpp index 9b20fc68a..d5a503699 100644 --- a/test/entt/meta/meta_type.cpp +++ b/test/entt/meta/meta_type.cpp @@ -303,8 +303,8 @@ TEST_F(MetaType, Custom) { } ENTT_DEBUG_TEST_F(MetaTypeDeathTest, Custom) { - ASSERT_DEATH([[maybe_unused]] const int &value = entt::resolve().custom(), ""); - ASSERT_DEATH([[maybe_unused]] const char &value = entt::resolve().custom(), ""); + ASSERT_DEATH([[maybe_unused]] int value = entt::resolve().custom(), ""); + ASSERT_DEATH([[maybe_unused]] char value = entt::resolve().custom(), ""); } TEST_F(MetaType, RemovePointer) {