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:
parent
828f533b32
commit
1ccf1ec99b
@ -130,7 +130,7 @@ private slots:
|
||||
QBENCHMARK {
|
||||
QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Unsorted);
|
||||
foreach (const QString &filename, fileList) {
|
||||
|
||||
Q_UNUSED(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -150,7 +150,7 @@ private slots:
|
||||
QBENCHMARK {
|
||||
QStringList fileList = testdir.entryList(QDir::NoFilter, QDir::Time);
|
||||
foreach (const QString &filename, fileList) {
|
||||
|
||||
Q_UNUSED(filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user