Add cast to make Clang happy

This commit is contained in:
Thomas Rodgers 2015-01-28 16:38:14 -06:00
parent e6c45f5376
commit 937d485e74

View File

@ -133,7 +133,7 @@ namespace zmq
(volatile PVOID*) &ptr, val_, cmp_);
#elif defined ZMQ_ATOMIC_PTR_INTRINSIC
T *old = cmp_;
__atomic_compare_exchange_n (&ptr, &old, val_, false,
__atomic_compare_exchange_n (&ptr, (volatile T**) &old, val_, false,
__ATOMIC_RELEASE, __ATOMIC_ACQUIRE);
return old;
#elif defined ZMQ_ATOMIC_PTR_ATOMIC_H