Thanks Piotr, changes look appropriate, now merged and submitted to
svn/trunk. Cheers, Robert.

On 31 July 2012 12:31, Piotr Domagalski <[email protected]> wrote:
> Hi,
>
> To be compliant with the submission protocol, I'm sending the whole file
> instead of a patch.
>
>
> On 07/09/12 12:01, Piotr Domagalski wrote:
>>
>> Hi!
>>
>> 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
>>
>>
>>
>>
>> _______________________________________________
>> osg-submissions mailing list
>> [email protected]
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>
>
> --
> Piotr Domagalski
> Poznan Supercomputing and Networking Center
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to