diff --git a/src/Olm.cpp b/src/Olm.cpp
index af8bb512e6a5101fd69d8776f166c19880fea39d..cdafabf307fdedcbd0a491650845fbd5753ab28c 100644
--- a/src/Olm.cpp
+++ b/src/Olm.cpp
@@ -435,8 +435,8 @@ send_key_request_for(mtx::events::EncryptedEvent<mtx::events::msg::Encrypted> e,
                                e.content.session_id);
 
         mtx::events::msg::KeyRequest request;
-        request.action               = !cancel ? mtx::events::msg::RequestAction::Request
-                                               : mtx::events::msg::RequestAction::Cancellation;
+        request.action = !cancel ? mtx::events::msg::RequestAction::Request
+                                 : mtx::events::msg::RequestAction::Cancellation;
         request.algorithm            = MEGOLM_ALGO;
         request.room_id              = e.room_id;
         request.sender_key           = e.content.sender_key;
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index c75c6c89fae7a835b56ffe156a2822d41a4fec8a..81c1bce9aee7a43cafd52ceb29d07d23e6bd5261 100644
--- a/src/TextInputWidget.cpp
+++ b/src/TextInputWidget.cpp
@@ -453,8 +453,8 @@ FilteredTextEdit::completerRect()
         auto item_height = completer_->popup()->sizeHintForRow(0);
         auto max_height  = item_height * completer_->maxVisibleItems();
         auto height      = (completer_->completionCount() > completer_->maxVisibleItems())
-                             ? max_height
-                             : completer_->completionCount() * item_height;
+                        ? max_height
+                        : completer_->completionCount() * item_height;
         rect.setWidth(completer_->popup()->sizeHintForColumn(0));
         rect.moveBottom(-height);
         return rect;
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 38dbba220bfcf742baddf7337ac76726855ad312..0bfc82c39b803e878448404a82c2c73daadb0d8b 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -638,7 +638,7 @@ utils::luminance(const QColor &col)
         qreal lumRgb[3];
 
         for (int i = 0; i < 3; i++) {
-                qreal v = colRgb[i] / 255.0;
+                qreal v                  = colRgb[i] / 255.0;
                 v <= 0.03928 ? lumRgb[i] = v / 12.92 : lumRgb[i] = qPow((v + 0.055) / 1.055, 2.4);
         }
 
diff --git a/src/WebRTCSession.cpp b/src/WebRTCSession.cpp
index 890bb86697c23917f1b3c5a2a16fc3cfbd99312c..c746df8e7a75bb3df04c8c317d41d1a29dabc0bb 100644
--- a/src/WebRTCSession.cpp
+++ b/src/WebRTCSession.cpp
@@ -25,7 +25,7 @@ extern "C"
 #endif
 
 // https://github.com/vector-im/riot-web/issues/10173
-constexpr std::string_view STUN_SERVER = "stun://turn.matrix.org:3478";
+[[maybe_unused]] constexpr std::string_view STUN_SERVER = "stun://turn.matrix.org:3478";
 
 Q_DECLARE_METATYPE(webrtc::State)