mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 10:06:40 -04:00
23 lines
636 B
C
23 lines
636 B
C
--- base/synchronization/lock_impl.h.orig 2024-08-27 06:28:16 UTC
|
|
+++ base/synchronization/lock_impl.h
|
|
@@ -109,6 +109,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);
|
|
@@ -129,6 +133,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.
|