diff options
Diffstat (limited to 'dev-db/mongodb/files/mongodb-8.0.6-mozjs-remove-unused-constructor.patch')
| -rw-r--r-- | dev-db/mongodb/files/mongodb-8.0.6-mozjs-remove-unused-constructor.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-db/mongodb/files/mongodb-8.0.6-mozjs-remove-unused-constructor.patch b/dev-db/mongodb/files/mongodb-8.0.6-mozjs-remove-unused-constructor.patch new file mode 100644 index 000000000000..60f231d9ae48 --- /dev/null +++ b/dev-db/mongodb/files/mongodb-8.0.6-mozjs-remove-unused-constructor.patch @@ -0,0 +1,28 @@ +From 67320f150c65ece68118d1c9ecfd1c0a1f69ba6f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fran=C3=A7ois=20Valenduc?= <francoisvalenduc@gmail.com> +Date: Mon, 28 Apr 2025 14:16:08 +0200 +Subject: [PATCH] remove unused constructor + +--- + .../mozjs/extract/js/src/threading/ExclusiveData.h | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/src/third_party/mozjs/extract/js/src/threading/ExclusiveData.h b/src/third_party/mozjs/extract/js/src/threading/ExclusiveData.h +index 38e89f10a1d..2d8ca831bf7 100644 +--- a/src/third_party/mozjs/extract/js/src/threading/ExclusiveData.h ++++ b/src/third_party/mozjs/extract/js/src/threading/ExclusiveData.h +@@ -109,11 +109,6 @@ class ExclusiveData { + explicit ExclusiveData(const MutexId& id, Args&&... args) + : lock_(id), value_(std::forward<Args>(args)...) {} + +- ExclusiveData(ExclusiveData&& rhs) +- : lock_(std::move(rhs.lock)), value_(std::move(rhs.value_)) { +- MOZ_ASSERT(&rhs != this, "self-move disallowed!"); +- } +- + ExclusiveData& operator=(ExclusiveData&& rhs) { + this->~ExclusiveData(); + new (mozilla::KnownNotNull, this) ExclusiveData(std::move(rhs)); +-- +2.49.0 + |
