aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-base_synchronization_lock__impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-base_synchronization_lock__impl.h')
-rw-r--r--devel/electron37/files/patch-base_synchronization_lock__impl.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-base_synchronization_lock__impl.h b/devel/electron37/files/patch-base_synchronization_lock__impl.h
new file mode 100644
index 000000000000..134af71750f2
--- /dev/null
+++ b/devel/electron37/files/patch-base_synchronization_lock__impl.h
@@ -0,0 +1,23 @@
+--- base/synchronization/lock_impl.h.orig 2025-04-22 20:15:27 UTC
++++ base/synchronization/lock_impl.h
+@@ -110,6 +110,10 @@ void LockImpl::Unlock() {
+ }
+
+ #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
++#if BUILDFLAG(IS_FREEBSD)
++#pragma GCC diagnostic push
++#pragma GCC diagnostic ignored "-Wthread-safety-analysis"
++#endif
+
+ #if DCHECK_IS_ON()
+ BASE_EXPORT void dcheck_trylock_result(int rv);
+@@ -130,6 +134,9 @@ void LockImpl::Unlock() {
+ dcheck_unlock_result(rv);
+ #endif
+ }
++#if BUILDFLAG(IS_FREEBSD)
++#pragma GCC diagnostic pop
++#endif
+ #endif
+
+ // This is an implementation used for AutoLock templated on the lock type.