From 3a72496b5c43484a94882440993b0ca0cb842d8a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 16 Jul 2021 09:57:56 +0200 Subject: tests: fix some -Wvolatile C++20 deprecated compound volatile statements such as pre- and post-increments, to stress that they're not atomic. So instead of volatile i; ~~~~; ++i; you're now supposed to write volatile i; ~~~~; int j = i; // volatile load ++j; i = j; // volatile store which matches more closely what hardware does. Instead of fixing every use of volatile pre- or post-increment in this fashion individually, and realising that probably a few more Qt modules will have the same kind of code patterns in them, write QtPrivate functions to do the job centrally. Change-Id: I838097bd484ef2118c071726963f103c080d2ba5 Reviewed-by: Lars Knoll --- tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt') diff --git a/tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt b/tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt index 8872a50227..923bfba117 100644 --- a/tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt +++ b/tests/benchmarks/corelib/thread/qmutex/CMakeLists.txt @@ -8,6 +8,7 @@ qt_internal_add_benchmark(tst_bench_qmutex SOURCES tst_qmutex.cpp PUBLIC_LIBRARIES + Qt::CorePrivate Qt::Test ) -- cgit v1.2.3