diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 08:39:54 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 08:39:54 +0300 |
commit | e698de6ad058ce98cecd883a81765b01b0619a99 (patch) | |
tree | e9fe7cad206bd6fe84d95fc0c4cd77b61129416b /src | |
parent | a757c2a24175fa39409d809209237d2a7355d26d (diff) | |
download | libatomic_ops-e698de6ad058ce98cecd883a81765b01b0619a99.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.
Diffstat (limited to 'src')
-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 */ |