summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/thread
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-04 11:20:36 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-21 07:46:27 +0100
commit643b6e5b291669c0decda1ed827ec2a98cfc6e29 (patch)
treef0c659d9e753d5b7255a7a841e30c8fd9b2f7835 /tests/benchmarks/corelib/thread
parent617165af6b3a317ec40f130ccadff81684171c34 (diff)
Silence warnings from unused variables
Use them, or replace them with existing constants. Pick-to: 6.5 Change-Id: I808028296305e15b68aecb1f961ba6a85b8e9cc7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib/thread')
-rw-r--r--tests/benchmarks/corelib/thread/qthreadstorage/tst_bench_qthreadstorage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/thread/qthreadstorage/tst_bench_qthreadstorage.cpp b/tests/benchmarks/corelib/thread/qthreadstorage/tst_bench_qthreadstorage.cpp
index 1361013833..724d587dd1 100644
--- a/tests/benchmarks/corelib/thread/qthreadstorage/tst_bench_qthreadstorage.cpp
+++ b/tests/benchmarks/corelib/thread/qthreadstorage/tst_bench_qthreadstorage.cpp
@@ -64,6 +64,7 @@ void tst_QThreadStorage::get()
int *i = ts.localData();
count += *i;
}
+ QVERIFY(count > 0);
ts.setLocalData(0);
}