From: Ivan Maidanski <ivmai@mail.ru> Date: Fri, 8 Dec 2017 16:04:50 +0000 (+0300) Subject: Do not define copy_before_cas() as inline X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=110b0dcc9b29f7aca880b6d77acd15890d37508f;p=libatomic_ops Do not define copy_before_cas() as inline (fix commit 6ffda1d) * src/atomic_ops_stack.c (AO_copy_before_cas): Replace AO_INLINE with static. --- diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c index e43ba3d..0a6124a 100644 --- a/src/atomic_ops_stack.c +++ b/src/atomic_ops_stack.c @@ -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; }