Unverified Commit b608af6c by Edward Thomson Committed by GitHub

Merge pull request #6116 from lhchavez/drop-volatile-qualifier-in-atomic-exchange

parents 03132b36 5675312e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment