diff options
author | Edward Thomson <ethomson@github.com> | 2021-11-14 07:23:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 07:23:01 -0500 |
commit | b608af6c3a2502ae61b94416a482c2e0672286a4 (patch) | |
tree | 9c32f5e39ceb71904ef53b6270525eaf6f83aa76 /src | |
parent | 03132b361c3756cf3a56415da63090bb7b7e4920 (diff) | |
parent | 5675312e5aeb0c8b438df3ba9da7542673b2e0e7 (diff) | |
download | libgit2-b608af6c3a2502ae61b94416a482c2e0672286a4.tar.gz |
Merge pull request #6116 from lhchavez/drop-volatile-qualifier-in-atomic-exchange
Diffstat (limited to 'src')
-rw-r--r-- | src/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread.h b/src/thread.h index 82eb7fcab..4bbac9fd8 100644 --- a/src/thread.h +++ b/src/thread.h @@ -180,7 +180,7 @@ GIT_INLINE(volatile void *) git_atomic__swap( #if defined(GIT_WIN32) return InterlockedExchangePointer(ptr, newval); #elif defined(GIT_BUILTIN_ATOMIC) - void * volatile foundval = NULL; + void * foundval = NULL; __atomic_exchange(ptr, &newval, &foundval, __ATOMIC_SEQ_CST); return foundval; #elif defined(GIT_BUILTIN_SYNC) |