X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fsystem.h;h=0c3152f63f20f018df833c269efc0df531f3b682;hb=c53cf27f54bfb914e874ddb82a54653b6ccee276;hp=e36a13baf51dc79a8ad9b31351a75a1c3ed775b6;hpb=7e30abe3df0e83eeb741bfc18d07cb016af804a1;p=urcu.git diff --git a/urcu/system.h b/urcu/system.h index e36a13b..0c3152f 100644 --- a/urcu/system.h +++ b/urcu/system.h @@ -46,9 +46,9 @@ */ #define STORE_SHARED(x, v) \ ({ \ - _STORE_SHARED(x, v); \ + typeof(x) _v = _STORE_SHARED(x, v); \ smp_wmc(); \ - (v); \ + _v; \ }) #endif /* _URCU_SYSTEM_H */