diff options
Diffstat (limited to 'common')
-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 |
6 files changed, 28 insertions, 2 deletions
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 | ||