summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-04 18:49:25 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-04 18:49:25 +0200
commitb9c4a819ade7798c0c464151cc086bae911a1654 (patch)
tree1fe22d898de38f6d74a40112061614b5d00ff117
parentMigrate to matrix-structs for event and response parsing (diff)
downloadnheko-b9c4a819ade7798c0c464151cc086bae911a1654.tar.xz
Fix travis errors
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/MatrixClient.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69efeedd..1591c36f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,7 +121,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
         -Werror \
         -pipe \
         -pedantic \
-        -ferror-limit=3 \
         -Wunreachable-code")
 
     if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc
index 3a987d27..28aeb47d 100644
--- a/src/MatrixClient.cc
+++ b/src/MatrixClient.cc
@@ -927,7 +927,7 @@ MatrixClient::readEvent(const QString &room_id, const QString &event_id)
 
         auto reply = post(request, "{}");
 
-        connect(reply, &QNetworkReply::finished, this, [this, reply]() {
+        connect(reply, &QNetworkReply::finished, this, [reply]() {
                 reply->deleteLater();
 
                 int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();