Fix warnings about unused members in tests

Change-Id: I741cf08c26f8a2e297926cc01968ff09e70462a2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-07-26 19:44:12 +02:00
parent dfeedc17a2
commit 6f17509ad9
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -535,7 +535,7 @@ void tst_QArrayData::reallocate()
class Unaligned
{
char dummy[8];
Q_DECL_UNUSED_MEMBER char dummy[8];
};
void tst_QArrayData::alignment_data()

View File

@ -43,9 +43,9 @@ private Q_SLOTS:
void testDeductionRules();
};
class C { C() {} char _[4]; };
class M { M() {} char _[4]; };
class P { char _[4]; };
class C { C() {} Q_DECL_UNUSED_MEMBER char _[4]; };
class M { M() {} Q_DECL_UNUSED_MEMBER char _[4]; };
class P { Q_DECL_UNUSED_MEMBER char _[4]; };
QT_BEGIN_NAMESPACE
Q_DECLARE_TYPEINFO(M, Q_MOVABLE_TYPE);