summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-09-10 08:39:54 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-09-12 10:47:29 +0300
commite9cb175c80698dbb4a587a642e125d72c0d339a4 (patch)
treef0e2ce6c9763260e849f44d9cc9d2c5a2950c62e
parent73a95ab5464589c175e27e1afc8e8152a9cddcaf (diff)
downloadlibatomic_ops-e9cb175c80698dbb4a587a642e125d72c0d339a4.tar.gz
Declare argument of AO_load_next with const in atomic_ops_stack
(refactoring) * src/atomic_ops_stack.c [AO_THREAD_SANITIZER] (AO_load_next): Add const to argument.
-rw-r--r--src/atomic_ops_stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_ops_stack.c b/src/atomic_ops_stack.c
index 6008b89..5d7995f 100644
--- a/src/atomic_ops_stack.c
+++ b/src/atomic_ops_stack.c
@@ -130,7 +130,7 @@ void AO_stack_push_explicit_aux_release(volatile AO_t *list, AO_t *x,
/* data race (reported by TSan) is OK because it results in a retry. */
#ifdef AO_THREAD_SANITIZER
AO_ATTR_NO_SANITIZE_THREAD
- static AO_t AO_load_next(volatile AO_t *first_ptr)
+ static AO_t AO_load_next(const volatile AO_t *first_ptr)
{
/* Assuming an architecture on which loads of word type are atomic. */
/* AO_load cannot be used here because it cannot be instructed to */