1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

t may be unused, per the if constexpr.

This commit is contained in:
Thomas Harte 2021-05-03 20:32:16 -04:00
parent 48ad4d4c4c
commit 5a46853075

View File

@ -323,7 +323,7 @@ template <typename Owner> class StructImpl: public Struct {
}
private:
template <typename Type> bool declare_reflectable(Type *t, const std::string &name) {
template <typename Type> bool declare_reflectable([[maybe_unused]] Type *t, const std::string &name) {
if constexpr (std::is_base_of<Reflection::Struct, Type>::value) {
Reflection::Struct *const str = static_cast<Reflection::Struct *>(t);
declare_emplace(str, name);