Fix warnings about unused variables in benchmarks
This patch removes two unused variables and marks one unused, fixing three warnings. Change-Id: I71f59839452590b82ffb5459a968f06bd434fb9a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
parent
687bd03d09
commit
5e84023344
@ -111,6 +111,7 @@ void testLookup(int size)
|
|||||||
val = container.value(i);
|
val = container.value(i);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Q_UNUSED(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_associative_containers::lookup()
|
void tst_associative_containers::lookup()
|
||||||
|
@ -233,7 +233,6 @@ class ThreadedDataReaderHttpServer: public QThread
|
|||||||
// used to make the constructor only return after the tcp server started listening
|
// used to make the constructor only return after the tcp server started listening
|
||||||
QSemaphore ready;
|
QSemaphore ready;
|
||||||
QTcpSocket *client;
|
QTcpSocket *client;
|
||||||
int timeout;
|
|
||||||
int port;
|
int port;
|
||||||
public:
|
public:
|
||||||
qint64 transferRate;
|
qint64 transferRate;
|
||||||
|
@ -114,8 +114,6 @@ void tst_QGraphicsLayout::invalidate()
|
|||||||
|
|
||||||
// ...then measure...
|
// ...then measure...
|
||||||
|
|
||||||
int pass = 1;
|
|
||||||
|
|
||||||
// should be as small as possible, to reduce overhead of painting
|
// should be as small as possible, to reduce overhead of painting
|
||||||
QSizeF size(1, 1);
|
QSizeF size(1, 1);
|
||||||
setGeometryCalls->clear();
|
setGeometryCalls->clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user