diff --git a/Reflection/Struct.hpp b/Reflection/Struct.hpp index 24dbd489d..761b878ec 100644 --- a/Reflection/Struct.hpp +++ b/Reflection/Struct.hpp @@ -323,7 +323,7 @@ template class StructImpl: public Struct { } private: - template bool declare_reflectable(Type *t, const std::string &name) { + template bool declare_reflectable([[maybe_unused]] Type *t, const std::string &name) { if constexpr (std::is_base_of::value) { Reflection::Struct *const str = static_cast(t); declare_emplace(str, name);