summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--common/changereplay.cpp2
-rw-r--r--common/domainadaptor.h7
-rw-r--r--common/resourcefacade.cpp2
-rw-r--r--examples/imapresource/imapserverproxy.cpp2
-rw-r--r--examples/maildirresource/maildirresource.cpp1
-rw-r--r--examples/mailtransportresource/mailtransport.cpp2
-rw-r--r--synchronizer/main.cpp6
8 files changed, 10 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1eb16a1..8213bed 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,7 +72,7 @@ endfunction()
72 72
73set(CMAKE_AUTOMOC ON) 73set(CMAKE_AUTOMOC ON)
74if (${CATCH_ERRORS}) 74if (${CATCH_ERRORS})
75 add_definitions("-Werror -Wall -Weverything -Wno-unused-function -Wno-cast-align -Wno-used-but-marked-unused -Wno-shadow -Wno-weak-vtables -Wno-global-constructors -Wno-deprecated -Wno-weak-template-vtables -Wno-exit-time-destructors -Wno-covered-switch-default -Wno-shorten-64-to-32 -Wno-documentation -Wno-old-style-cast -Wno-extra-semi -Wno-unused-parameter -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-missing-noreturn -Wno-missing-prototypes -Wno-documentation-unknown-command -Wno-sign-conversion") 75 add_definitions("-Werror -Wall -Weverything -Wno-unused-function -Wno-cast-align -Wno-used-but-marked-unused -Wno-shadow -Wno-weak-vtables -Wno-global-constructors -Wno-deprecated -Wno-weak-template-vtables -Wno-exit-time-destructors -Wno-covered-switch-default -Wno-shorten-64-to-32 -Wno-documentation -Wno-old-style-cast -Wno-extra-semi -Wno-unused-parameter -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-missing-noreturn -Wno-missing-prototypes -Wno-documentation-unknown-command -Wno-sign-conversion -Wno-gnu-zero-variadic-macro-arguments -Wno-disabled-macro-expansion -Wno-vla-extension -Wno-vla")
76endif() 76endif()
77add_definitions("-std=c++0x -g") 77add_definitions("-std=c++0x -g")
78include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${FLATBUFFERS_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/common) 78include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${FLATBUFFERS_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/common)
diff --git a/common/changereplay.cpp b/common/changereplay.cpp
index 51443e8..0096bd0 100644
--- a/common/changereplay.cpp
+++ b/common/changereplay.cpp
@@ -128,5 +128,5 @@ void ChangeReplay::revisionChanged()
128 128
129#pragma clang diagnostic push 129#pragma clang diagnostic push
130#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" 130#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
131#include "changereplay.moc" 131#include "moc_changereplay.cpp"
132#pragma clang diagnostic pop 132#pragma clang diagnostic pop
diff --git a/common/domainadaptor.h b/common/domainadaptor.h
index e97c5f5..8ac8171 100644
--- a/common/domainadaptor.h
+++ b/common/domainadaptor.h
@@ -94,14 +94,13 @@ public:
94 { 94 {
95 } 95 }
96 96
97 virtual QVariant setProperty(const QByteArray &key, const QVariant &value) const 97 virtual void setProperty(const QByteArray &key, const QVariant &value) Q_DECL_OVERRIDE
98 { 98 {
99 Q_ASSERT(false);
100 Warning() << "Can't set property " << key; 99 Warning() << "Can't set property " << key;
101 return QVariant(); 100 Q_ASSERT(false);
102 } 101 }
103 102
104 virtual QVariant getProperty(const QByteArray &key) const 103 virtual QVariant getProperty(const QByteArray &key) const Q_DECL_OVERRIDE
105 { 104 {
106 if (mResourceBuffer && mResourceMapper->hasMapping(key)) { 105 if (mResourceBuffer && mResourceMapper->hasMapping(key)) {
107 return mResourceMapper->getProperty(key, mResourceBuffer); 106 return mResourceMapper->getProperty(key, mResourceBuffer);
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp
index 65ff05c..3901f43 100644
--- a/common/resourcefacade.cpp
+++ b/common/resourcefacade.cpp
@@ -220,5 +220,5 @@ IdentityFacade::~IdentityFacade()
220 220
221#pragma clang diagnostic push 221#pragma clang diagnostic push
222#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" 222#pragma clang diagnostic ignored "-Wundefined-reinterpret-cast"
223#include "resourcefacade.moc" 223#include "moc_resourcefacade.cpp"
224#pragma clang diagnostic pop 224#pragma clang diagnostic pop
diff --git a/examples/imapresource/imapserverproxy.cpp b/examples/imapresource/imapserverproxy.cpp
index a82e3ac..703caca 100644
--- a/examples/imapresource/imapserverproxy.cpp
+++ b/examples/imapresource/imapserverproxy.cpp
@@ -87,7 +87,7 @@ class SessionUiProxy : public KIMAP::SessionUiProxy {
87 } 87 }
88}; 88};
89 89
90ImapServerProxy::ImapServerProxy(const QString &serverUrl, int port) : mSession(new KIMAP::Session(serverUrl, port)) 90ImapServerProxy::ImapServerProxy(const QString &serverUrl, int port) : mSession(new KIMAP::Session(serverUrl, qint16(port)))
91{ 91{
92 mSession->setUiProxy(SessionUiProxy::Ptr(new SessionUiProxy)); 92 mSession->setUiProxy(SessionUiProxy::Ptr(new SessionUiProxy));
93 mSession->setTimeout(10); 93 mSession->setTimeout(10);
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp
index 23e25c4..ea780cc 100644
--- a/examples/maildirresource/maildirresource.cpp
+++ b/examples/maildirresource/maildirresource.cpp
@@ -164,7 +164,6 @@ public:
164 auto identifier = oldMaildir.moveEntryTo(oldIdentifier, maildir); 164 auto identifier = oldMaildir.moveEntryTo(oldIdentifier, maildir);
165 return path + "/" + identifier; 165 return path + "/" + identifier;
166 } 166 }
167 return oldPath;
168 } 167 }
169 168
170 void newEntity(const QByteArray &uid, qint64 revision, Sink::ApplicationDomain::BufferAdaptor &newEntity, Sink::Storage::Transaction &transaction) Q_DECL_OVERRIDE 169 void newEntity(const QByteArray &uid, qint64 revision, Sink::ApplicationDomain::BufferAdaptor &newEntity, Sink::Storage::Transaction &transaction) Q_DECL_OVERRIDE
diff --git a/examples/mailtransportresource/mailtransport.cpp b/examples/mailtransportresource/mailtransport.cpp
index 5985562..4f7e59b 100644
--- a/examples/mailtransportresource/mailtransport.cpp
+++ b/examples/mailtransportresource/mailtransport.cpp
@@ -48,7 +48,7 @@ static size_t payload_source(void *ptr, size_t size, size_t nmemb, void *userp)
48 if (len > size * nmemb) { 48 if (len > size * nmemb) {
49 len = size * nmemb; 49 len = size * nmemb;
50 } 50 }
51 fprintf(stderr, "read n bytes: %d\n",len); 51 fprintf(stderr, "read n bytes: %d\n", int(len));
52 memcpy(ptr, data, len); 52 memcpy(ptr, data, len);
53 upload_ctx->offset += len; 53 upload_ctx->offset += len;
54 return len; 54 return len;
diff --git a/synchronizer/main.cpp b/synchronizer/main.cpp
index a30aebb..3168bfc 100644
--- a/synchronizer/main.cpp
+++ b/synchronizer/main.cpp
@@ -37,7 +37,7 @@
37#undef DEBUG_AREA 37#undef DEBUG_AREA
38#define DEBUG_AREA "resource" 38#define DEBUG_AREA "resource"
39 39
40Listener *listener = nullptr; 40static Listener *listener = nullptr;
41 41
42//Print a demangled stacktrace 42//Print a demangled stacktrace
43void printStacktrace() 43void printStacktrace()
@@ -78,14 +78,13 @@ void printStacktrace()
78 std::cerr << trace_buf.str(); 78 std::cerr << trace_buf.str();
79} 79}
80 80
81int sCounter = 0; 81static int sCounter = 0;
82 82
83void crashHandler(int signal) 83void crashHandler(int signal)
84{ 84{
85 //Guard against crashing in here 85 //Guard against crashing in here
86 if (sCounter > 1) { 86 if (sCounter > 1) {
87 std::_Exit(EXIT_FAILURE); 87 std::_Exit(EXIT_FAILURE);
88 return;
89 } 88 }
90 sCounter++; 89 sCounter++;
91 90
@@ -107,7 +106,6 @@ void crashHandler(int signal)
107 // std::system("exec xterm -e gdb -p \"$PPID\""); 106 // std::system("exec xterm -e gdb -p \"$PPID\"");
108 107
109 std::_Exit(EXIT_FAILURE); 108 std::_Exit(EXIT_FAILURE);
110 return;
111} 109}
112 110
113void terminateHandler() 111void terminateHandler()