summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 19:44:12 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-29 14:33:24 +0200
commit6f17509ad9044c689e22719c6c4d1f7f88e4c954 (patch)
tree18a9b5ae4f5a5e68212a003592ce654043b00e8d /tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
parentdfeedc17a25d8d2fdc4e52927e7c34f1ff045c32 (diff)
Fix warnings about unused members in tests
Change-Id: I741cf08c26f8a2e297926cc01968ff09e70462a2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
index 3d729eae67..f55d115f8f 100644
--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
@@ -986,9 +986,9 @@ public:
};
Q_DECLARE_METATYPE(CustomMultiInheritanceObject*);
-class C { char _[4]; public: C() = default; C(const C&) {} };
-class M { char _[4]; public: M() {} };
-class P { char _[4]; };
+class C { Q_DECL_UNUSED_MEMBER char _[4]; public: C() = default; C(const C&) {} };
+class M { Q_DECL_UNUSED_MEMBER char _[4]; public: M() {} };
+class P { Q_DECL_UNUSED_MEMBER char _[4]; };
QT_BEGIN_NAMESPACE
#if defined(Q_CC_GNU) && Q_CC_GNU < 501