diff --git a/libgnucash/engine/gnc-option.cpp b/libgnucash/engine/gnc-option.cpp index 277491645e..56f3f8aa31 100644 --- a/libgnucash/engine/gnc-option.cpp +++ b/libgnucash/engine/gnc-option.cpp @@ -119,7 +119,7 @@ GncOption::set_value(ValueType value) std::is_same_v || std::is_same_v))) option.set_value(value); - if constexpr (is_same_decayed_v) { if constexpr (is_same_decayed_v, char*>) option.set_value(value); } + else + PWARN("No set_value handler: get_value returns %s, value_type is %s", + typeid(option.get_value()).name(), typeid(value).name()); }, *m_option); }