diff --git a/test/entt/poly/poly.cpp b/test/entt/poly/poly.cpp index e30f9d8b1..4200a2ff2 100644 --- a/test/entt/poly/poly.cpp +++ b/test/entt/poly/poly.cpp @@ -45,10 +45,14 @@ struct common_members { } }; -static int absolutely_random() { +namespace { + +[[nodiscard]] int absolutely_random() { return 42; } +} // namespace + template using common_impl = entt::value_list< &Type::incr, diff --git a/test/example/reserved_bits.cpp b/test/example/reserved_bits.cpp index 71c3c6888..b666ae37a 100644 --- a/test/example/reserved_bits.cpp +++ b/test/example/reserved_bits.cpp @@ -22,10 +22,14 @@ struct entt::entt_traits: entt::basic_entt_traits registry{}; auto view = registry.view();