diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 08:39:54 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-09-12 10:47:29 +0300 |
commit | e9cb175c80698dbb4a587a642e125d72c0d339a4 (patch) | |
tree | f0e2ce6c9763260e849f44d9cc9d2c5a2950c62e | |
parent | 73a95ab5464589c175e27e1afc8e8152a9cddcaf (diff) | |
download | libatomic_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.c | 2 |
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 */ |