Cleanup: update code layout to fix old gcc warning
[urcu.git] / src / urcu-wait.h
index 94f3e3559ba8c32492234f911911db7faa1337a9..47ac5eb35884f437ca299e48cf656e2c301557f7 100644 (file)
@@ -60,8 +60,13 @@ struct urcu_wait_queue {
        struct cds_wfs_stack stack;
 };
 
-#define URCU_WAIT_QUEUE_HEAD_INIT(name)                        \
-       { .stack.head = CDS_WFS_END, .stack.lock = PTHREAD_MUTEX_INITIALIZER }
+#define URCU_WAIT_QUEUE_HEAD_INIT(name)                                \
+       {                                                       \
+                .stack = {                                     \
+                       .head = CDS_WFS_END,                    \
+                       .lock = PTHREAD_MUTEX_INITIALIZER,      \
+               },                                              \
+       }
 
 #define DECLARE_URCU_WAIT_QUEUE(name)                  \
        struct urcu_wait_queue name
This page took 0.029837 seconds and 4 git commands to generate.