cpu-op lib: Change code layout to remove gcc-4.8 warnings
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Apr 2019 18:46:44 +0000 (14:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Apr 2019 18:46:44 +0000 (14:46 -0400)
commitf51405804d61ac67b37da3ade3b87f0972a66601
tree92a33159b9597dc9da8c6f4e8ccdef70ed410d46
parentd01bcb9c13f24555036fc3fce4b10bcfd9deb944
cpu-op lib: Change code layout to remove gcc-4.8 warnings

gcc-4.8 seems to mistakenly think there are missing field initializers
in the cpu-op.c code, e.g.:

cpu-op.c: In function ‘cpu_op_cmpxchg’:
cpu-op.c:94:4: warning: missing initializer for field ‘src’ of ‘struct <anonymous>’ [-Wmissing-field-initializers]
    .u.memcpy_op.src = (unsigned long)n,

Change the code layout so these warnings are not triggered.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/cpu-op.c
This page took 0.024026 seconds and 4 git commands to generate.