Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ee0ae87c authored by Volker Krause's avatar Volker Krause

Silence unused function warning of clang

This happens for sub-classes without any additional properties, but since
all of this is compile-time code it has no practical impact.
parent 8980f2bc
......@@ -137,6 +137,7 @@ namespace detail { \
#define KITINERARY_MAKE_OPERATOR(Class) \
bool Class::operator==(const Class &other) const \
{ \
static_assert(detail::property_counter(detail::num<0>(), detail::tag<Class>()) == 1, "silence unused function warnings"); \
typedef Class ## Private this_type; \
const auto lhs = static_cast<const this_type *>(d.data()); \
const auto rhs = static_cast<const this_type*>(other.d.data()); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment