summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-06-25 15:44:22 +0200
committerhjk <hjk121@nokiamail.com>2014-06-25 15:59:09 +0200
commita7b882315d961740fc5e34df754d2b40f9e8fe8a (patch)
tree53a876f11d4151faff938c623c7551ceb496872d
parent604bdad77f6599527e5cd6f6e445c9d38c3d95ff (diff)
downloadqt-creator-a7b882315d961740fc5e34df754d2b40f9e8fe8a.tar.gz
Mark unused fields with Q_UNUSED.
.. to suppress -Wunused-private-field warnings. Change-Id: I9eaea1b45bbe4fda4714831af1926c14b31cb9fe Reviewed-by: hjk <hjk121@nokiamail.com>
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index 83e8bcc77b..7c92102d65 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -412,7 +412,7 @@ class XX : virtual public Foo { public: XX() { } };
class Y : virtual public Foo { public: Y() { } };
-class D : public X, public Y { int diamond; };
+class D : public X, public Y { int diamond; D(){Q_UNUSED(diamond);} };
namespace peekandpoke {
@@ -6503,7 +6503,7 @@ namespace bug5106 {
class A5106
{
public:
- A5106(int a, int b) : m_a(a), m_b(b) {}
+ A5106(int a, int b) : m_a(a), m_b(b) {Q_UNUSED(m_a);Q_UNUSED(m_b);}
virtual int test() { return 5; }
private:
int m_a, m_b;
@@ -6512,7 +6512,7 @@ namespace bug5106 {
class B5106 : public A5106
{
public:
- B5106(int c, int a, int b) : A5106(a, b), m_c(c) {}
+ B5106(int c, int a, int b) : A5106(a, b), m_c(c) {Q_UNUSED(m_c);}
virtual int test() { return 4; BREAK_HERE; }
private:
int m_c;