Fix warnings about unused members in tests
Change-Id: I741cf08c26f8a2e297926cc01968ff09e70462a2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
dfeedc17a2
commit
6f17509ad9
@ -986,9 +986,9 @@ public:
|
|||||||
};
|
};
|
||||||
Q_DECLARE_METATYPE(CustomMultiInheritanceObject*);
|
Q_DECLARE_METATYPE(CustomMultiInheritanceObject*);
|
||||||
|
|
||||||
class C { char _[4]; public: C() = default; C(const C&) {} };
|
class C { Q_DECL_UNUSED_MEMBER char _[4]; public: C() = default; C(const C&) {} };
|
||||||
class M { char _[4]; public: M() {} };
|
class M { Q_DECL_UNUSED_MEMBER char _[4]; public: M() {} };
|
||||||
class P { char _[4]; };
|
class P { Q_DECL_UNUSED_MEMBER char _[4]; };
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
#if defined(Q_CC_GNU) && Q_CC_GNU < 501
|
#if defined(Q_CC_GNU) && Q_CC_GNU < 501
|
||||||
|
@ -535,7 +535,7 @@ void tst_QArrayData::reallocate()
|
|||||||
|
|
||||||
class Unaligned
|
class Unaligned
|
||||||
{
|
{
|
||||||
char dummy[8];
|
Q_DECL_UNUSED_MEMBER char dummy[8];
|
||||||
};
|
};
|
||||||
|
|
||||||
void tst_QArrayData::alignment_data()
|
void tst_QArrayData::alignment_data()
|
||||||
|
@ -43,9 +43,9 @@ private Q_SLOTS:
|
|||||||
void testDeductionRules();
|
void testDeductionRules();
|
||||||
};
|
};
|
||||||
|
|
||||||
class C { C() {} char _[4]; };
|
class C { C() {} Q_DECL_UNUSED_MEMBER char _[4]; };
|
||||||
class M { M() {} char _[4]; };
|
class M { M() {} Q_DECL_UNUSED_MEMBER char _[4]; };
|
||||||
class P { char _[4]; };
|
class P { Q_DECL_UNUSED_MEMBER char _[4]; };
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
Q_DECLARE_TYPEINFO(M, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(M, Q_MOVABLE_TYPE);
|
||||||
|
Loading…
Reference in New Issue
Block a user