Tests: Fix Clang warnings about various unused variables
tst_qpainter.cpp:400:26: warning: unused variable 'maskSource_data' [-Wunused-const-variable] tst_qpainter.cpp:422:26: warning: unused variable 'maskResult_data' [-Wunused-const-variable] tst_qfuture.cpp:1203:11: warning: unused variable 'resultCount' [-Wunused-const-variable] tst_qvarlengtharray.cpp:33:11: warning: unused variable 'N' [-Wunused-const-variable] Change-Id: Ic8891603089a877a5c69701c63c2c6fd20fa6a22 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
6ecfab30d0
commit
08d1706be3
@ -1200,8 +1200,6 @@ void tst_QFuture::pause()
|
||||
Interface.reportFinished();
|
||||
}
|
||||
|
||||
const int resultCount = 1000;
|
||||
|
||||
class ResultObject : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -30,8 +30,6 @@
|
||||
#include <qvarlengtharray.h>
|
||||
#include <qvariant.h>
|
||||
|
||||
const int N = 1;
|
||||
|
||||
class tst_QVarLengthArray : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -530,16 +530,6 @@ void tst_QIcon::streamAvailableSizes()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static inline bool operator<(const QSize &lhs, const QSize &rhs)
|
||||
{
|
||||
if (lhs.width() < rhs.width())
|
||||
return true;
|
||||
else if (lhs.width() == lhs.width())
|
||||
return lhs.height() < lhs.height();
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef QT_NO_WIDGETS
|
||||
void tst_QIcon::task184901_badCache()
|
||||
{
|
||||
|
@ -397,51 +397,6 @@ void tst_QPainter::cleanupTestCase()
|
||||
QFile::remove(QLatin1String("foo.png"));
|
||||
}
|
||||
|
||||
static const char* const maskSource_data[] = {
|
||||
"16 13 6 1",
|
||||
". c None",
|
||||
"d c #000000",
|
||||
"# c #999999",
|
||||
"c c #cccccc",
|
||||
"b c #ffff00",
|
||||
"a c #ffffff",
|
||||
"...#####........",
|
||||
"..#aaaaa#.......",
|
||||
".#abcbcba######.",
|
||||
".#acbcbcaaaaaa#d",
|
||||
".#abcbcbcbcbcb#d",
|
||||
"#############b#d",
|
||||
"#aaaaaaaaaa##c#d",
|
||||
"#abcbcbcbcbbd##d",
|
||||
".#abcbcbcbcbcd#d",
|
||||
".#acbcbcbcbcbd#d",
|
||||
"..#acbcbcbcbb#dd",
|
||||
"..#############d",
|
||||
"...ddddddddddddd"};
|
||||
|
||||
static const char* const maskResult_data[] = {
|
||||
"16 13 6 1",
|
||||
". c #ff0000",
|
||||
"d c #000000",
|
||||
"# c #999999",
|
||||
"c c #cccccc",
|
||||
"b c #ffff00",
|
||||
"a c #ffffff",
|
||||
"...#####........",
|
||||
"..#aaaaa#.......",
|
||||
".#abcbcba######.",
|
||||
".#acbcbcaaaaaa#d",
|
||||
".#abcbcbcbcbcb#d",
|
||||
"#############b#d",
|
||||
"#aaaaaaaaaa##c#d",
|
||||
"#abcbcbcbcbbd##d",
|
||||
".#abcbcbcbcbcd#d",
|
||||
".#acbcbcbcbcbd#d",
|
||||
"..#acbcbcbcbb#dd",
|
||||
"..#############d",
|
||||
"...ddddddddddddd"};
|
||||
|
||||
|
||||
#ifndef QT_NO_WIDGETS
|
||||
void tst_QPainter::drawPixmap_comp_data()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user