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:26 +0000 (12:23 -0400)
commit26c3d37d8e48f5b3e7e6149c9d663e28b1fd51d4
treee1fef4310d16fdaa43c17686e4b34214a82bb6cf
parent52c67a3d6139a6bf56b97ed350c7f3beaef3ce67
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.025271 seconds and 4 git commands to generate.