Hi Ulrich,
On 23-03-2012, at 00:58, Ulrich Hertlein wrote:
> 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)).
Thanks for providing a solution for this.
> 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.
I think I just beat you to it, 9 minutes ago :-)... Although I used a slightly
different approach. Can you please comment on it, so we can work out what would
be the best one to merge?
Cheers,
Erik
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org