This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc and qt-5.12.0 compilation error fix (#171)
Compililation with gcc (any version) and Qt 5.12.0 (important) fails with error: ``` Core/private/sysapiloader_p.h:59:26: error: no matching function for call to ‘QMutex::QMutex()’ static inline QMutex m_mutex; ^~~~~~~ include/QtCore/qmutex.h:165:5: note: candidate: ‘QMutex::QMutex(const QMutex&)’ <deleted> Q_DISABLE_COPY(QMutex) ^~~~~~~~~~~~~~ ``` `QMutex` in Qt 5.12.0 has explicit (!) one-parameter constructor with a default value: `QMutex(QMutex::RecursionMode mode = NonRecursive)` and no default constructor. In this case declaring static inline member without initializer causes the above error.
- Loading branch information