X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Fsystem.h;h=0de7dd2e489f864e887552911f565500e6c9de0c;hp=e36a13baf51dc79a8ad9b31351a75a1c3ed775b6;hb=3d02c34dba0edc4a3554a3862a2ae96d77b3b4e8;hpb=7e30abe3df0e83eeb741bfc18d07cb016af804a1 diff --git a/urcu/system.h b/urcu/system.h index e36a13b..0de7dd2 100644 --- a/urcu/system.h +++ b/urcu/system.h @@ -6,7 +6,7 @@ * * System definitions. * - * Copyright (c) 2009 Mathieu Desnoyers + * Copyright (c) 2009 Mathieu Desnoyers * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. @@ -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 */