diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 12:17:32 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-31 12:17:32 +0100 |
commit | 380649c1eb762f5f7a10cd15d1c5e87f36b0638c (patch) | |
tree | 74effbf9e95e3c7ccc4ee66ed1eddb0d3f265e9b /common/resource.cpp | |
parent | 8aa5510513719f3a8e40a6faf6749fdfc44490d2 (diff) | |
download | sink-380649c1eb762f5f7a10cd15d1c5e87f36b0638c.tar.gz sink-380649c1eb762f5f7a10cd15d1c5e87f36b0638c.zip |
Build without warnings
Diffstat (limited to 'common/resource.cpp')
-rw-r--r-- | common/resource.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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 | ||