X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fwfstack.h;fp=include%2Furcu%2Fwfstack.h;h=016d9f2207df89a37cca8d7ca49847b829c8bf23;hp=1058fba9baa4dc0fa89b1250e68f5c2814e486e2;hb=2875743718fb23293190b5edd0f2b530977270b1;hpb=153b081a9b007aad7bece415dc3bf1125edd2da3 diff --git a/include/urcu/wfstack.h b/include/urcu/wfstack.h index 1058fba..016d9f2 100644 --- a/include/urcu/wfstack.h +++ b/include/urcu/wfstack.h @@ -57,7 +57,7 @@ extern "C" { * synchronization. */ -#define CDS_WFS_WOULDBLOCK ((void *) -1UL) +#define CDS_WFS_WOULDBLOCK ((struct cds_wfs_node *) -1UL) enum cds_wfs_state { CDS_WFS_STATE_LAST = (1U << 0), @@ -95,11 +95,13 @@ struct cds_wfs_stack { * The transparent union allows calling functions that work on both * struct cds_wfs_stack and struct __cds_wfs_stack on any of those two * types. + * + * Avoid complaints from clang++ not knowing this attribute. */ typedef union { struct __cds_wfs_stack *_s; struct cds_wfs_stack *s; -} __attribute__((__transparent_union__)) cds_wfs_stack_ptr_t; +} caa_c_transparent_union cds_wfs_stack_ptr_t; #ifdef _LGPL_SOURCE