aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/roomevent.cpp2
-rw-r--r--lib/events/stateevent.cpp2
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))