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:
Takuya Wakazono
2025-03-06 23:25:21 +09:00
parent 0917405991
commit 1935ca60a2

View File

@@ -1,17 +1,14 @@
https://bugs.gentoo.org/950311
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
+++ b/src/MEGASync/control/ProtectedQueue.h
@@ -13,11 +13,6 @@ public:
ProtectedQueue(){}
virtual ~ProtectedQueue(){}
@@ -107,7 +107,7 @@ public:
- ProtectedQueue(const ProtectedQueue& other)
- {
- std::lock_guard<std::mutex> guard( other.mMutex );
- mQueue = other.mQueue;
- }
private:
std::queue<T> mQueue;
- std::mutex mMutex;
+ mutable std::mutex mMutex;
};
ProtectedQueue& operator= (ProtectedQueue& other)
{
#endif // PROTECTED_QUEUE