From 5a468530753e72b158a2375ce4d5b5a2303a4ac2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 3 May 2021 20:32:16 -0400 Subject: [PATCH] `t` may be unused, per the `if constexpr`. --- Reflection/Struct.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);