]> git.lttng.org Git - urcu.git/commitdiff
Fix: move transparent union attribute after union declaration for clang
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Mar 2015 01:02:13 +0000 (21:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 16 Mar 2015 01:02:13 +0000 (21:02 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/lfstack.h
urcu/wfcqueue.h
urcu/wfstack.h

index cd8e958dfc2ac6e0151b4f73685cd615dac74ded..fa58054221e77826f97484cb99626a3444eac9c4 100644 (file)
@@ -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
 
index df26e339692b4694590352fa4454b366a67137e0..83ec21949bbf5c7a27e012be5aa675bb06883dfc 100644 (file)
@@ -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;
index 362caccfa568b8631542238e0172e88763faaa44..28f61623638d0dc4ea03268f791e9d418668ef11 100644 (file)
@@ -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
 
This page took 0.031838 seconds and 4 git commands to generate.