projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: use urcu-tls compat with c++ compiler
[urcu.git]
/
include
/
urcu
/
wfstack.h
diff --git
a/include/urcu/wfstack.h
b/include/urcu/wfstack.h
index 5d58a9143ffb49eaaf6f2a1ad491aa34a81048d3..0890f5c1a54b7d8e590196cf6553ce12f5b7e001 100644
(file)
--- a/
include/urcu/wfstack.h
+++ b/
include/urcu/wfstack.h
@@
-98,11
+98,21
@@
struct cds_wfs_stack {
*
* In C++, implement static inline wrappers using function overloading
* to obtain an API similar to C.
*
* 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;
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
#ifdef _LGPL_SOURCE
This page took
0.025024 seconds
and
4
git commands to generate.