Module: kamailio
Branch: master
Commit: 6c196e18649d90d6bcda2d2c21247f8797966ecb
URL: 
https://github.com/kamailio/kamailio/commit/6c196e18649d90d6bcda2d2c21247f8797966ecb

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-30T09:17:42+01:00

core: atomic - remove compile warnings for darwin

---

Modified: src/core/atomic/atomic_unknown.h
Modified: src/core/atomic_ops.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/6c196e18649d90d6bcda2d2c21247f8797966ecb.diff
Patch: 
https://github.com/kamailio/kamailio/commit/6c196e18649d90d6bcda2d2c21247f8797966ecb.patch

---

diff --git a/src/core/atomic/atomic_unknown.h b/src/core/atomic/atomic_unknown.h
index 323aacf9fff..3b491398241 100644
--- a/src/core/atomic/atomic_unknown.h
+++ b/src/core/atomic/atomic_unknown.h
@@ -46,13 +46,8 @@
        } while(0)
 #else /* SMP */
 
-#if defined __CPU_arm64 && defined __OS_darwin
-/* fallback to locking-variant of atomic ops for OSes used for development
-        * - MacOS with Apple silicon */
-#else
 #warning no native memory barrier implementations, falling back to slow lock \
               based workaround
-#endif
 
 #define MEMBAR_USES_LOCK
 
diff --git a/src/core/atomic_ops.h b/src/core/atomic_ops.h
index 52cbd95de62..444f7c3dd16 100644
--- a/src/core/atomic_ops.h
+++ b/src/core/atomic_ops.h
@@ -176,9 +176,7 @@
 
 /*! \brief if no native operations, emulate them using locks */
 #if !defined HAVE_ASM_INLINE_ATOMIC_OPS || !defined HAVE_ASM_INLINE_MEMBAR
-#ifndef __OS_darwin
-#warning "no native atomic ops, atomic_unknown.h will be used"
-#endif
+
 #include "atomic/atomic_unknown.h"
 
 #endif /* if HAVE_ASM_INLINE_ATOMIC_OPS */

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to