mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -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://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
|
||||
|
||||
Reference in New Issue
Block a user