From 1ccf1ec99bd82131e5baf9487603080c16dd5b26 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Mon, 26 Apr 2021 12:06:00 +0200 Subject: [PATCH] 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 --- tests/benchmarks/corelib/io/qdir/10000/bench_qdir_10000.cpp | 4 ++-- 1 file 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); } } }