summaryrefslogtreecommitdiffstats
path: root/tests/auto/concurrent
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:08:13 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-11 20:30:06 +0000
commit9b808b84bf2f08f63fab248cb05d586295a90fe6 (patch)
treea12e8d395c60b483aaffc82f40b84ba1144cd1fb /tests/auto/concurrent
parent923bb9e1581f38dec2316af5add51762c76cec7b (diff)
Fix gcc warnings from having only one of assignment/copy
For example: warning: implicitly-declared ‘constexpr Complex& Complex::operator=(const Complex&)’ is deprecated [-Wdeprecated-copy] Change-Id: I7598e821acb7cb7bf17776d693af62778185afc5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit ed8429495e32537e5f426f5feb5a3b7eb0dca102) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/concurrent')
-rw-r--r--tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
index 67e979dc14..5bcf90c0d6 100644
--- a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
+++ b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
@@ -1618,6 +1618,8 @@ public:
{ currentInstanceCount.fetchAndAddRelaxed(-1);}
inline InstanceCounter(const InstanceCounter &)
{ currentInstanceCount.fetchAndAddRelaxed(1); updatePeak(); }
+ constexpr InstanceCounter &operator=(const InstanceCounter &) noexcept
+ { return *this; }
void updatePeak()
{