Thanks Ulrich, I have merged the change to
src/OpenThreads/common/Atomic.cpp, but ignored the change to
src/osgViewer/CMakeList.txt as suggested.  Changes now merged and
submitted to svn/trunk.

On 22 March 2012 23:58, Ulrich Hertlein <[email protected]> wrote:
> Hi Robert,
>
> as discussed on osg-users there is an issue with clang++ on OS X and iOS that 
> results in
> the following error:
>
> Users/stephan/Documents/Projekte/cefix/cefix/ios/../../libs/ios/include/OpenThreads/Atomic:244:48:
> error: cannot initialize a parameter of type 'void *' with an lvalue of
> type 'const void *const'
>    return __sync_bool_compare_and_swap(&_ptr, ptrOld, ptrNew);
>
> This can be solved by a cast to '(void*)ptrOld'.  This should be benign since 
> both
> 'ptrOld' and 'ptrNew' are only read and the cast is in fact in place for all 
> other
> implementations as well.
>
> On OS X the cast compiles cleanly on both g++ 
> (i686-apple-darwin11-llvm-g++-4.2 (GCC)
> 4.2.1) and clang++ (Apple clang version 3.1 (tags/Apple/clang-318.0.54)).
>
> Also included is a modified src/osgViewer/CMakeLists.txt that more reliably 
> detects OS X
> versions 10.5, 10.6, and 10.7 and uses Cocoa on these platforms.  It also 
> checks for the
> new location of the SDK, that was changed with Xcode 4.3.
>
> Cheers,
> /ulrich
>
> _______________________________________________
> 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