From Piotr Domagalski, "Currently, code using OpenSceneGraph doesn't build with clang due to the way __sync_bool_compare_and_swap() is used in OpenThreads/Atomic header file.
From Piotr Domagalski, "Currently, code using OpenSceneGraph doesn't build with clang due to the way __sync_bool_compare_and_swap() is used in OpenThreads/Atomic header file.

I tested it with clang 3.1 and it seems that clang is enforcing the use of the same type for all parameters in this builtin. Looking at the function declaration [1]

bool __sync_bool_compare_and_swap (type *ptr, type oldval type newval, ...)

it seems to be doing the right thing: here the same type is used for *ptr, oldval and newval.

[1] http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins
"


stmh/osg,XiaoCC/osg,stmh/osg,artoolkit/osg,artoolkit/osg,ghub/osg,stmh/osg,ghub/osg,omega-hub/osg,XiaoCC/osg,omega-hub/osg,ntoand/osg,ghub/osg,stmh/osg,koshman86/osg,stmh/osg,XiaoCC/osg,artoolkit/osg,omega-hub/osg,ntoand/osg,ntoand/osg,ntoand/osg,artoolkit/osg,koshman86/osg,XiaoCC/osg,koshman86/osg,XiaoCC/osg,koshman86/osg,ghub/osg,omega-hub/osg