summaryrefslogtreecommitdiff
path: root/dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch
diff options
context:
space:
mode:
authorZ. Liu <zhixu.liu@gmail.com>2024-12-11 20:08:03 +0800
committerSam James <sam@gentoo.org>2024-12-12 04:56:50 +0000
commit356a577a8b297ffb97e1cc8c61a67e14cd5014b3 (patch)
tree121f86e8332edbee940213553850fd3bcb8111a5 /dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch
parent569d9e999605eb291fce135f03fc250c5f0c5336 (diff)
downloadgentoo-356a577a8b297ffb97e1cc8c61a67e14cd5014b3.tar.gz
gentoo-356a577a8b297ffb97e1cc8c61a67e14cd5014b3.tar.bz2
gentoo-356a577a8b297ffb97e1cc8c61a67e14cd5014b3.zip
dev-db/mongodb: fix build error w/ clang 19
Backport from upstream commit 33cdc6655b0de44cb7a431216dcbb0d5a552aec6 Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39677 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch')
-rw-r--r--dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch b/dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch
new file mode 100644
index 000000000000..0b5058c88155
--- /dev/null
+++ b/dev-db/mongodb/files/mongodb-5.0.26-mozjs-remove-unused-constructor.patch
@@ -0,0 +1,25 @@
+https://phabricator.services.mozilla.com/D209108
+https://github.com/mozilla/gecko-dev/commit/33cdc6655b0de44cb7a431216dcbb0d5a552aec6
+
+clang 19 will report error if w/o this patch:
+
+ src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h:124:33: error: reference to non-static member function must be called
+
+diff --git a/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h b/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
+index 25b977e..379a509 100644
+--- a/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
++++ b/src/third_party/mozjs-60/extract/js/src/threading/ExclusiveData.h
+@@ -120,13 +120,6 @@ class ExclusiveData
+ release();
+ }
+
+- ExclusiveData(ExclusiveData&& rhs)
+- : lock_(mozilla::Move(rhs.lock))
+- {
+- MOZ_ASSERT(&rhs != this, "self-move disallowed!");
+- new (mozilla::KnownNotNull, value_.addr()) T(mozilla::Move(*rhs.value_.addr()));
+- }
+-
+ ExclusiveData& operator=(ExclusiveData&& rhs) {
+ this->~ExclusiveData();
+ new (mozilla::KnownNotNull, this) ExclusiveData(mozilla::Move(rhs));