From 5135c0fd2284e6365bc9d0c53f060b7e946a412f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 15 Mar 2015 21:02:13 -0400 Subject: [PATCH] Fix: move transparent union attribute after union declaration for clang Signed-off-by: Mathieu Desnoyers --- urcu/lfstack.h | 4 ++-- urcu/wfcqueue.h | 4 ++-- urcu/wfstack.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.34.1