Hi,
I've successfully compiled trunk using cmake on 10.7.3. That's with Apple LLVM
3.0.0. No additional CXX flags passed into make.
With the "implicit conversion to 32bit type" enabled, I am seeing warnings to
do with precision loss. e.g:
In file included from
../iShowU-v3/Frameworks/OpenSceneGraph-3.1.3/Debug/osg.framework/Headers/StateAttribute:20:
...
...
../Frameworks/OpenSceneGraph-3.1.3/Debug/osg.framework/Headers/Shader:56:47:{56:47-56:59}{56:40-56:46}:
warning: implicit conversion loses integer precision: 'size_type' (aka
'unsigned long') to 'unsigned int' [-Wshorten-64-to-32,3]
unsigned int getSize() const { return _data.size(); }
~~~~~~ ^~~~~~~~~~~~
Couldn't get the formatting to work, but the ^ char is pointing at the _data
term, just after return.
Is this something I need to be worried about? Is it safe for me to switch the
warning off?
After looking - this warning appears to be disabled in my other projects - but
it did get me a little concerned - so here I am, asking the Q. :)
Thank you!
Neil
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47399#47399
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org