aboutsummaryrefslogtreecommitdiff
path: root/lib/quotient_common.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 08:55:10 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-01-18 08:57:06 +0100
commitb17b629df44dbc888f6b6bee79d0d13d662371cf (patch)
tree61ebad6d2e3e57e54dea9ee1bca4ac06f6c7db1f /lib/quotient_common.h
parentaaa57e0e458435e23047fcb325872f0350171bad (diff)
downloadlibquotient-b17b629df44dbc888f6b6bee79d0d13d662371cf.tar.gz
libquotient-b17b629df44dbc888f6b6bee79d0d13d662371cf.zip
Add [[maybe_unused]] to things the lib doesn't use
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r--lib/quotient_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h
index af3e2730..02a9f0cd 100644
--- a/lib/quotient_common.h
+++ b/lib/quotient_common.h
@@ -95,7 +95,7 @@ enum class JoinState : std::underlying_type_t<Membership> {
};
QUO_DECLARE_FLAGS_NS(JoinStates, JoinState)
-constexpr auto JoinStateStrings = make_array(
+[[maybe_unused]] constexpr auto JoinStateStrings = make_array(
MembershipStrings[0], MembershipStrings[1], MembershipStrings[2],
MembershipStrings[3] /* same as MembershipStrings, sans "ban" */
);
@@ -125,7 +125,7 @@ enum RoomType {
};
Q_ENUM_NS(RoomType)
-constexpr auto RoomTypeStrings = make_array("m.space");
+[[maybe_unused]] constexpr auto RoomTypeStrings = make_array("m.space");
} // namespace Quotient
Q_DECLARE_OPERATORS_FOR_FLAGS(Quotient::MembershipMask)