mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
net-misc/megasync: adjust clang build patch based on upstream feedback
https://github.com/meganz/MEGAsync/issues/1055 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1,17 +1,14 @@
|
|||||||
https://bugs.gentoo.org/950311
|
https://bugs.gentoo.org/950311
|
||||||
https://github.com/meganz/MEGAsync/issues/1055
|
https://github.com/meganz/MEGAsync/issues/1055
|
||||||
Fix build with clang by removing broken and unused constructor.
|
Fix build with clang by mark mutex as mutable.
|
||||||
--- a/src/MEGASync/control/ProtectedQueue.h
|
--- a/src/MEGASync/control/ProtectedQueue.h
|
||||||
+++ b/src/MEGASync/control/ProtectedQueue.h
|
+++ b/src/MEGASync/control/ProtectedQueue.h
|
||||||
@@ -13,11 +13,6 @@ public:
|
@@ -107,7 +107,7 @@ public:
|
||||||
ProtectedQueue(){}
|
|
||||||
virtual ~ProtectedQueue(){}
|
|
||||||
|
|
||||||
- ProtectedQueue(const ProtectedQueue& other)
|
private:
|
||||||
- {
|
std::queue<T> mQueue;
|
||||||
- std::lock_guard<std::mutex> guard( other.mMutex );
|
- std::mutex mMutex;
|
||||||
- mQueue = other.mQueue;
|
+ mutable std::mutex mMutex;
|
||||||
- }
|
};
|
||||||
|
|
||||||
ProtectedQueue& operator= (ProtectedQueue& other)
|
#endif // PROTECTED_QUEUE
|
||||||
{
|
|
||||||
|
|||||||
Reference in New Issue
Block a user