need CAS only for futures or places

This commit is contained in:
Matthew Flatt 2014-04-28 13:00:11 -06:00
parent 715d596e47
commit bc871b904e

View File

@ -85,6 +85,8 @@ int mzrt_sema_destroy(mzrt_sema *sema);
/****************** Compare and Swap *******************************/
#if defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES)
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wunused-function"
@ -131,6 +133,12 @@ static MZ_INLINE void mzrt_ensure_max_cas(uintptr_t *atomic_val, uintptr_t len)
# pragma clang diagnostic pop
#endif
/* end defined(MZ_USE_PLACES) || defined(MZ_USE_FUTURES) */
#endif
/****************************************************************/
/* end MZ_USE_MZRT */
#endif
#endif