diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-11 17:08:20 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-11 17:08:20 +0900 |
commit | 372a9ed301e52d6daf7ccdb9a9982a67f46486a1 (patch) | |
tree | a89f6a3f98afc6e614191acaffa86e2d5eef96f2 /lib/events | |
parent | 1803e79038a8f8ab966c40572c039b10bf51072e (diff) | |
download | libquotient-372a9ed301e52d6daf7ccdb9a9982a67f46486a1.tar.gz libquotient-372a9ed301e52d6daf7ccdb9a9982a67f46486a1.zip |
Use [[maybe_unused]] instead of [[gnu::unused]]
Diffstat (limited to 'lib/events')
-rw-r--r-- | lib/events/roomevent.cpp | 2 | ||||
-rw-r--r-- | lib/events/stateevent.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/events/roomevent.cpp b/lib/events/roomevent.cpp index e19c03ce..971d8597 100644 --- a/lib/events/roomevent.cpp +++ b/lib/events/roomevent.cpp @@ -24,7 +24,7 @@ using namespace Quotient; -[[gnu::unused]] static auto roomEventTypeInitialised = +[[maybe_unused]] static auto roomEventTypeInitialised = Event::factory_t::chainFactory<RoomEvent>(); RoomEvent::RoomEvent(Type type, event_mtype_t matrixType, diff --git a/lib/events/stateevent.cpp b/lib/events/stateevent.cpp index c0bb0794..5909e8a6 100644 --- a/lib/events/stateevent.cpp +++ b/lib/events/stateevent.cpp @@ -23,7 +23,7 @@ using namespace Quotient; // Aside from the normal factory to instantiate StateEventBase inheritors // StateEventBase itself can be instantiated if there's a state_key JSON key // but the event type is unknown. -[[gnu::unused]] static auto stateEventTypeInitialised = +[[maybe_unused]] static auto stateEventTypeInitialised = RoomEvent::factory_t::addMethod( [](const QJsonObject& json, const QString& matrixType) -> StateEventPtr { if (!json.contains(StateKeyKeyL)) |