Fix: powerpc32: transparent unions alter calling convention
[urcu.git] / include / urcu / wfstack.h
index 5d58a9143ffb49eaaf6f2a1ad491aa34a81048d3..0890f5c1a54b7d8e590196cf6553ce12f5b7e001 100644 (file)
@@ -98,11 +98,21 @@ struct cds_wfs_stack {
  *
  * In C++, implement static inline wrappers using function overloading
  * to obtain an API similar to C.
+ *
+ * Avoid complaints from clang++ not knowing the transparent union
+ * attribute.
  */
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wignored-attributes"
+#endif
 typedef union {
        struct __cds_wfs_stack *_s;
        struct cds_wfs_stack *s;
-} caa_c_transparent_union cds_wfs_stack_ptr_t;
+} __attribute__((__transparent_union__)) cds_wfs_stack_ptr_t;
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
 
 #ifdef _LGPL_SOURCE
 
This page took 0.022352 seconds and 4 git commands to generate.