Module: kamailio
Branch: master
Commit: 67d16d697c318af22b619030c080aacb8e1e9df4
URL: 
https://github.com/kamailio/kamailio/commit/67d16d697c318af22b619030c080aacb8e1e9df4

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-28T10:54:58+01:00

core: atomic ops - silent compile warning for darwin

- when falling back to atomic unknown, typically used for development

---

Modified: src/core/atomic_ops.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/67d16d697c318af22b619030c080aacb8e1e9df4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/67d16d697c318af22b619030c080aacb8e1e9df4.patch

---

diff --git a/src/core/atomic_ops.h b/src/core/atomic_ops.h
index 1d25af50841..52cbd95de62 100644
--- a/src/core/atomic_ops.h
+++ b/src/core/atomic_ops.h
@@ -176,7 +176,9 @@
 
 /*! \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