We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03132b3 + 5675312 commit b608af6Copy full SHA for b608af6
src/thread.h
@@ -180,7 +180,7 @@ GIT_INLINE(volatile void *) git_atomic__swap(
180
#if defined(GIT_WIN32)
181
return InterlockedExchangePointer(ptr, newval);
182
#elif defined(GIT_BUILTIN_ATOMIC)
183
- void * volatile foundval = NULL;
+ void * foundval = NULL;
184
__atomic_exchange(ptr, &newval, &foundval, __ATOMIC_SEQ_CST);
185
return foundval;
186
#elif defined(GIT_BUILTIN_SYNC)
0 commit comments