From a7b882315d961740fc5e34df754d2b40f9e8fe8a Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Wed, 25 Jun 2014 15:44:22 +0200 Subject: [PATCH] Mark unused fields with Q_UNUSED. .. to suppress -Wunused-private-field warnings. Change-Id: I9eaea1b45bbe4fda4714831af1926c14b31cb9fe Reviewed-by: hjk --- tests/manual/debugger/simple/simple_test_app.cpp | 6 +++--- 1 file 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 83e8bcc77bc..7c92102d65f 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;