X-Git-Url: http://git.liburcu.org/?p=userspace-rcu.git;a=blobdiff_plain;f=urcu%2Fcompiler.h;h=378f0eae8a59b3d0c1029566a174b0b6011e3009;hp=e7817dbd019f8803abea56cd54fd749ebe6279d6;hb=20da51e457e3e6a70141ccb40c911d44815f7f63;hpb=1f80e0f9f697b6a1d77cf493900013d0d0684b86 diff --git a/urcu/compiler.h b/urcu/compiler.h index e7817db..378f0ea 100644 --- a/urcu/compiler.h +++ b/urcu/compiler.h @@ -64,6 +64,7 @@ * @member: name of the field within the object. */ #define caa_container_of(ptr, type, member) \ + __extension__ \ ({ \ const __typeof__(((type *) NULL)->member) * __ptr = (ptr); \ (type *)((char *)__ptr - offsetof(type, member)); \