Declare loop arg in benchmark unused

Since these tests do not actually use the filename in the loops, add
macros to declare them unused.

Change-Id: I3362e0478ac6802b37f54f90ca377aa462570d8c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
David Skoland 2021-04-26 12:06:00 +02:00
parent 828f533b32
commit 1ccf1ec99b

View File

@ -130,7 +130,7 @@ private slots:
QBENCHMARK { QBENCHMARK {
QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Unsorted); QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Unsorted);
foreach (const QString &filename, fileList) { foreach (const QString &filename, fileList) {
Q_UNUSED(filename);
} }
} }
} }
@ -150,7 +150,7 @@ private slots:
QBENCHMARK { QBENCHMARK {
QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Time); QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Time);
foreach (const QString &filename, fileList) { foreach (const QString &filename, fileList) {
Q_UNUSED(filename);
} }
} }
} }