Commit 466a1354 authored by David Reid's avatar David Reid

Experiment with a fix for older versions of Clang.

parent e08c1303
......@@ -14905,8 +14905,10 @@ typedef int ma_atomic_memory_order;
}
#if defined(__clang__)
#pragma clang diagnostic push
#if __clang_major__ >= 8
#pragma clang diagnostic ignored "-Watomic-alignment"
#endif
#endif
static MA_INLINE ma_uint64 ma_atomic_compare_and_swap_64(volatile ma_uint64* dst, ma_uint64 expected, ma_uint64 desired)
{
__atomic_compare_exchange_n(dst, &expected, desired, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
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