1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +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 2c18bb4508
commit 00679b6135
+1 -1
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);