summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qatomic.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-01-19 14:04:14 -0800
committerThiago Macieira <thiago.macieira@intel.com>2017-01-26 07:44:33 +0000
commitdeef2d4e70c54ffe71304575e56095dd25cd55eb (patch)
treed7e4ef27456a82b1bd396e540df061c8f78e5ac0 /src/corelib/thread/qatomic.h
parent51dafeda8c833134acf7da40f7ad58cec349ee30 (diff)
Fix warning about not calling the base class copy constructor
error: base class ‘class QBasicAtomicPointer<void>’ should be explicitly initialized in the copy constructor [-Werror=extra] Change-Id: I2bc52f3c7a574209b213fffd149b4b71f3006be5 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/thread/qatomic.h')
-rw-r--r--src/corelib/thread/qatomic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/thread/qatomic.h b/src/corelib/thread/qatomic.h
index bbfc11f6c0..f9eacbf6f0 100644
--- a/src/corelib/thread/qatomic.h
+++ b/src/corelib/thread/qatomic.h
@@ -176,6 +176,9 @@ public:
}
#endif
inline QAtomicPointer(const QAtomicPointer<T> &other) Q_DECL_NOTHROW
+#ifdef QT_BASIC_ATOMIC_HAS_CONSTRUCTORS
+ : QBasicAtomicPointer<T>()
+#endif
{
this->storeRelease(other.loadAcquire());
}