]> granicus.if.org Git - libatomic_ops/commitdiff
Do not define copy_before_cas() as inline
authorIvan Maidanski <ivmai@mail.ru>
Fri, 8 Dec 2017 16:04:50 +0000 (19:04 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 8 Dec 2017 16:04:50 +0000 (19:04 +0300)
(fix commit 6ffda1d)

* src/atomic_ops_stack.c (AO_copy_before_cas): Replace AO_INLINE with
static.

src/atomic_ops_stack.c

index e43ba3d17c9dcad41a1a2daff21b9a71b6dd8b69..0a6124ad70c81a9d113906ec75a944f873a059ba 100644 (file)
@@ -25,7 +25,7 @@
 /* The function call must be a part of a do-while loop with a CAS       */
 /* designating the condition of the loop (see the use cases below).     */
 AO_ATTR_NO_SANITIZE_THREAD
-AO_INLINE void AO_copy_before_cas(AO_t *pdest, AO_t *psrc)
+static void AO_copy_before_cas(AO_t *pdest, AO_t *psrc)
 {
   *pdest = *psrc;
 }