diff options
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | common/genericresource.cpp | 3 | ||||
-rw-r--r-- | common/listener.cpp | 4 | ||||
-rw-r--r-- | common/messagequeue.cpp | 4 | ||||
-rw-r--r-- | common/pipeline.cpp | 4 | ||||
-rw-r--r-- | common/resource.cpp | 10 | ||||
-rw-r--r-- | common/resourceaccess.cpp | 5 | ||||
-rw-r--r-- | sinksh/repl/replStates.cpp | 2 | ||||
-rw-r--r-- | tests/hawd/dataset.cpp | 4 |
9 files changed, 36 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 26f2f08..0bbd9f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8.12) | |||
2 | 2 | ||
3 | option(BUILD_MAILDIR "BUILD_MAILDIR" ON) | 3 | option(BUILD_MAILDIR "BUILD_MAILDIR" ON) |
4 | option(AVOID_BINDING_REBUILD "AVOID_BINDING_REBUILD" OFF) | 4 | option(AVOID_BINDING_REBUILD "AVOID_BINDING_REBUILD" OFF) |
5 | option(CATCH_ERRORS "CATCH_ERRORS" OFF) | ||
5 | 6 | ||
6 | # ECM setup | 7 | # ECM setup |
7 | find_package(ECM 0.0.10 REQUIRED NO_MODULE) | 8 | find_package(ECM 0.0.10 REQUIRED NO_MODULE) |
@@ -58,7 +59,9 @@ function(add_clang_static_analysis target) | |||
58 | endfunction() | 59 | endfunction() |
59 | 60 | ||
60 | set(CMAKE_AUTOMOC ON) | 61 | set(CMAKE_AUTOMOC ON) |
61 | add_definitions("-Wall -Weverything -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") | 62 | if (${CATCH_ERRORS}) |
63 | 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") | ||
64 | endif() | ||
62 | add_definitions("-std=c++0x -g") | 65 | add_definitions("-std=c++0x -g") |
63 | include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${FLATBUFFERS_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/common) | 66 | include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${FLATBUFFERS_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/common) |
64 | include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/common/domain) | 67 | include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/common ${CMAKE_SOURCE_DIR}/common/domain) |
diff --git a/common/genericresource.cpp b/common/genericresource.cpp index 758ea0d..1e45243 100644 --- a/common/genericresource.cpp +++ b/common/genericresource.cpp | |||
@@ -662,4 +662,7 @@ void GenericResource::createOrModify(Sink::Storage::Transaction &transaction, Si | |||
662 | } | 662 | } |
663 | 663 | ||
664 | 664 | ||
665 | #pragma clang diagnostic push | ||
666 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
665 | #include "genericresource.moc" | 667 | #include "genericresource.moc" |
668 | #pragma clang diagnostic pop | ||
diff --git a/common/listener.cpp b/common/listener.cpp index 13ebbbb..6b62552 100644 --- a/common/listener.cpp +++ b/common/listener.cpp | |||
@@ -424,3 +424,7 @@ Sink::Resource *Listener::loadResource() | |||
424 | return m_resource; | 424 | return m_resource; |
425 | } | 425 | } |
426 | 426 | ||
427 | #pragma clang diagnostic push | ||
428 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
429 | #include "moc_listener.cpp" | ||
430 | #pragma clang diagnostic pop | ||
diff --git a/common/messagequeue.cpp b/common/messagequeue.cpp index 1055922..73198a5 100644 --- a/common/messagequeue.cpp +++ b/common/messagequeue.cpp | |||
@@ -174,3 +174,7 @@ bool MessageQueue::isEmpty() | |||
174 | return count == 0; | 174 | return count == 0; |
175 | } | 175 | } |
176 | 176 | ||
177 | #pragma clang diagnostic push | ||
178 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
179 | #include "moc_messagequeue.cpp" | ||
180 | #pragma clang diagnostic pop | ||
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index 401c26d..0598bad 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -459,3 +459,7 @@ void Preprocessor::finalize() | |||
459 | 459 | ||
460 | } // namespace Sink | 460 | } // namespace Sink |
461 | 461 | ||
462 | #pragma clang diagnostic push | ||
463 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
464 | #include "moc_pipeline.cpp" | ||
465 | #pragma clang diagnostic pop | ||
diff --git a/common/resource.cpp b/common/resource.cpp index 8c448a8..6972efe 100644 --- a/common/resource.cpp +++ b/common/resource.cpp | |||
@@ -34,7 +34,7 @@ Resource::Resource() | |||
34 | : QObject(), | 34 | : QObject(), |
35 | d(0) | 35 | d(0) |
36 | { | 36 | { |
37 | 37 | Q_UNUSED(d); | |
38 | } | 38 | } |
39 | 39 | ||
40 | Resource::~Resource() | 40 | Resource::~Resource() |
@@ -75,7 +75,7 @@ ResourceFactory::ResourceFactory(QObject *parent) | |||
75 | : QObject(parent), | 75 | : QObject(parent), |
76 | d(0) | 76 | d(0) |
77 | { | 77 | { |
78 | 78 | Q_UNUSED(d); | |
79 | } | 79 | } |
80 | 80 | ||
81 | ResourceFactory::~ResourceFactory() | 81 | ResourceFactory::~ResourceFactory() |
@@ -129,3 +129,9 @@ ResourceFactory *ResourceFactory::load(const QString &resourceName) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | } // namespace Sink | 131 | } // namespace Sink |
132 | |||
133 | //Ignore warning I don't know how to fix in a moc file | ||
134 | #pragma clang diagnostic push | ||
135 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
136 | #include "moc_resource.cpp" | ||
137 | #pragma clang diagnostic pop | ||
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 8296f1d..2e87bc7 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -589,3 +589,8 @@ void ResourceAccess::log(const QString &message) | |||
589 | } | 589 | } |
590 | 590 | ||
591 | } | 591 | } |
592 | |||
593 | #pragma clang diagnostic push | ||
594 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | ||
595 | #include "moc_resourceaccess.cpp" | ||
596 | #pragma clang diagnostic pop | ||
diff --git a/sinksh/repl/replStates.cpp b/sinksh/repl/replStates.cpp index 5bfc064..0cd2620 100644 --- a/sinksh/repl/replStates.cpp +++ b/sinksh/repl/replStates.cpp | |||
@@ -169,5 +169,7 @@ static char *sink_cli_next_tab_complete_match(const char *text, int state) | |||
169 | } | 169 | } |
170 | 170 | ||
171 | //Ignore warning I don't know how to fix in a moc file | 171 | //Ignore warning I don't know how to fix in a moc file |
172 | #pragma clang diagnostic push | ||
172 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" | 173 | #pragma clang diagnostic ignored "-Wundefined-reinterpret-cast" |
173 | #include "moc_replStates.cpp" | 174 | #include "moc_replStates.cpp" |
175 | #pragma clang diagnostic pop | ||
diff --git a/tests/hawd/dataset.cpp b/tests/hawd/dataset.cpp index fd931e8..372a4b6 100644 --- a/tests/hawd/dataset.cpp +++ b/tests/hawd/dataset.cpp | |||
@@ -216,8 +216,8 @@ QString Dataset::Row::toString(const QStringList &cols, int standardCols, const | |||
216 | Dataset::Dataset(const QString &name, const State &state) | 216 | Dataset::Dataset(const QString &name, const State &state) |
217 | : m_definition(state.datasetDefinition(name)), | 217 | : m_definition(state.datasetDefinition(name)), |
218 | m_storage(state.resultsPath(), name, Sink::Storage::ReadWrite), | 218 | m_storage(state.resultsPath(), name, Sink::Storage::ReadWrite), |
219 | m_commitHash(state.commitHash()), | 219 | m_transaction(std::move(m_storage.createTransaction())), |
220 | m_transaction(std::move(m_storage.createTransaction())) | 220 | m_commitHash(state.commitHash()) |
221 | { | 221 | { |
222 | } | 222 | } |
223 | 223 | ||