uatomic: Specify complete types for atomic function calls
authorKhem Raj <raj.khem@gmail.com>
Sun, 23 Aug 2015 04:38:30 +0000 (21:38 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 24 Aug 2015 16:23:29 +0000 (12:23 -0400)
commit7a3e2ed26a6be1deac2cfde1d062526497d4ae9f
tree6c11c5ed700a8b1f9bac55e5132c695306cfa66e
parent11eb040f24e020d05d65983d0f87f79b000c7b9f
uatomic: Specify complete types for atomic function calls

This was unearthed by clang compiler where it complained about parameter
mismatch, gcc doesnt notice this

urcu/uatomic/generic.h:190:10: error: address argument to atomic builtin
must be a pointer to integer or pointer ('void *' invalid)
                return __sync_add_and_fetch_4(addr, val);

Fixed all instances thusly.

[ Edit by Mathieu: use stdint.h types. ]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/uatomic/generic.h
This page took 0.02482 seconds and 4 git commands to generate.