From: Mathieu Desnoyers Date: Mon, 16 Mar 2015 01:02:13 +0000 (-0400) Subject: Fix: move transparent union attribute after union declaration for clang X-Git-Tag: v0.9.0~67 X-Git-Url: https://git.lttng.org/?p=urcu.git;a=commitdiff_plain;h=5135c0fd2284e6365bc9d0c53f060b7e946a412f Fix: move transparent union attribute after union declaration for clang Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/lfstack.h b/urcu/lfstack.h index cd8e958..fa58054 100644 --- a/urcu/lfstack.h +++ b/urcu/lfstack.h @@ -84,10 +84,10 @@ struct cds_lfs_stack { * struct cds_lfs_stack and struct __cds_lfs_stack on any of those two * types. */ -typedef union __attribute__((__transparent_union__)) { +typedef union { struct __cds_lfs_stack *_s; struct cds_lfs_stack *s; -} cds_lfs_stack_ptr_t; +} __attribute__((__transparent_union__)) cds_lfs_stack_ptr_t; #ifdef _LGPL_SOURCE diff --git a/urcu/wfcqueue.h b/urcu/wfcqueue.h index df26e33..83ec219 100644 --- a/urcu/wfcqueue.h +++ b/urcu/wfcqueue.h @@ -79,10 +79,10 @@ struct cds_wfcq_head { * struct cds_wfcq_head and struct __cds_wfcq_head on any of those two * types. */ -typedef union __attribute__((__transparent_union__)) { +typedef union { struct __cds_wfcq_head *_h; struct cds_wfcq_head *h; -} cds_wfcq_head_ptr_t; +} __attribute__((__transparent_union__)) cds_wfcq_head_ptr_t; struct cds_wfcq_tail { struct cds_wfcq_node *p; diff --git a/urcu/wfstack.h b/urcu/wfstack.h index 362cacc..28f6162 100644 --- a/urcu/wfstack.h +++ b/urcu/wfstack.h @@ -97,10 +97,10 @@ struct cds_wfs_stack { * struct cds_wfs_stack and struct __cds_wfs_stack on any of those two * types. */ -typedef union __attribute__((__transparent_union__)) { +typedef union { struct __cds_wfs_stack *_s; struct cds_wfs_stack *s; -} cds_wfs_stack_ptr_t; +} __attribute__((__transparent_union__)) cds_wfs_stack_ptr_t; #ifdef _LGPL_SOURCE