summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2021-04-26 12:06:00 +0200
committerDavid Skoland <david.skoland@qt.io>2021-04-27 14:12:35 +0200
commit1ccf1ec99bd82131e5baf9487603080c16dd5b26 (patch)
tree2103ce44da438df448942f9da4d17315878a7f97 /tests
parent828f533b32573c1251f20f38d4c5ef20b6cc2c39 (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp b/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp
index 894cf83de9..3184df0d7b 100644
--- a/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp
+++ b/tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp
@@ -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);
}
}
}