X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fsystem.h;h=6f314595178e98385fd72e9d48c3f82de374081b;hb=34b3f359c81e6400c9b451e49bf9dfaef7963509;hp=acce7e978cc9ba5d392c252612c53880ddab329f;hpb=d0bbd9c2e8322f036e0a0a70091cae98cad7e390;p=urcu.git diff --git a/urcu/system.h b/urcu/system.h index acce7e9..6f31459 100644 --- a/urcu/system.h +++ b/urcu/system.h @@ -47,11 +47,11 @@ * Store v into x, where x is located in shared memory. Performs the * required cache flush after writing. Returns v. */ -#define CMM_STORE_SHARED(x, v) \ - ({ \ - typeof(x) _v = _CMM_STORE_SHARED(x, v); \ - cmm_smp_wmc(); \ - _v; \ +#define CMM_STORE_SHARED(x, v) \ + ({ \ + __typeof__(x) _v = _CMM_STORE_SHARED(x, v); \ + cmm_smp_wmc(); \ + _v = _v; /* Work around clang "unused result" */ \ }) #endif /* _URCU_SYSTEM_H */