Cleanup: update code layout to fix old gcc warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 May 2019 13:56:19 +0000 (09:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 May 2019 13:58:08 +0000 (09:58 -0400)
commit7ae2447aed756956b333eeebae6f3e6db42e4d23
tree34230ef639fe17265cbeb31879259bd5ec6ee1d0
parente6a3c16e99be72fa793e6beb0b88c2ad4d146d7e
Cleanup: update code layout to fix old gcc warning

Some CI jobs show:

urcu-pointer.o
13:46:22 In file included from urcu.c:49:0:
13:46:22 urcu-wait.h:70:9: warning: missing initializer for field 'lock' of 'struct cds_wfs_stack' [-Wmissing-field-initializers]
13:46:22   struct urcu_wait_queue name = URCU_WAIT_QUEUE_HEAD_INIT(name)
13:46:22          ^
13:46:22 urcu.c:150:8: note: in expansion of macro 'DEFINE_URCU_WAIT_QUEUE'
13:46:22  static DEFINE_URCU_WAIT_QUEUE(gp_waiters);
13:46:22         ^
13:46:22 In file included from urcu-wait.h:27:0,
13:46:22                  from urcu.c:49:
13:46:22 ../include/urcu/wfstack.h:92:18: note: 'lock' declared here
13:46:22   pthread_mutex_t lock;
13:46:22

Change code layout so not to confuse old gcc.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-wait.h
This page took 0.025149 seconds and 4 git commands to generate.