Note that including <osgDB/ReaderWriter> in an external project produces a similar, but slightly smaller (52 warnings), output.
Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Thursday, January 29, 2009 2:06 PM To: OpenSceneGraph Users Subject: Re: [osg-users] Eliminating VS warnings in external projects Hi Paul, Could you send me a file containing the warnings (console output from the compiler is fine). The the warning is generated by the OSG headers then these need fixing or suppressed via include/osg/Export. Robert. On Thu, Jan 29, 2009 at 8:47 PM, Paul Martz <[email protected]> wrote: > Thanks, Robert. > > I've attached two source files, which, when compiled with VS, display > the 70 warnings below. > > In this case, the file doesn't actually need to #include > <osgDB/Registry>, and removing that #include eliminates _all_ > warnings. While this was a good catch, I have another source file that > _does_ need to #include <osgDB/Registry>, and it spews out an > identical set of warnings. So, please view the attached files and > warnings below as an example of a real issue, not resolvable by simply removing the #include. > > Obviously, there's some benefit to me going through all my projects > and looking for such mistakes. I'm just looking for a quick way to > avoid doing that _right_now_ so that it doesn't impact my productivity > regarding my current projects and deadlines. Unfortunately there > doesn't appear to be a way to easily return to my previous "zero > warnings" state, short of rolling back OSG. > > Paul Martz > Skew Matrix Software LLC > http://www.skew-matrix.com > +1 303 859 9466 > > > 1>------ Build started: Project: osgdb_PolyTrans, Configuration: > 1>Release > Win32 ------ > 1>Compiling... > 1>OptionLoader.cpp > 1>C:\Program Files\OpenSceneGraph\include\osg/Shape(612) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Shape(634) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(496) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(504) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(571) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(579) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(645) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/PrimitiveSet(653) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/StateAttribute(259) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Uniform(318) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Program(86) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/StateSet(92) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/State(137) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Node(147) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Node(282) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Group(100) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Group(142) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Image(276) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/OperationThread(111) : > 1>warning > C4267: 'return' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Stats(41) : warning C4267: > 'return' : conversion from 'size_t' to 'int', possible loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Stats(105) : warning C4267: > 'return' : conversion from 'size_t' to 'int', possible loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/View(134) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Drawable(157) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Geometry(202) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Geometry(222) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Geometry(234) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1>C:\Program Files\OpenSceneGraph\include\osg/KdTree(134) : warning C4267: > 'initializing' : conversion from 'size_t' to 'int', possible loss of > data > 1>C:\Program Files\OpenSceneGraph\include\osg/KdTree(150) : warning C4267: > 'initializing' : conversion from 'size_t' to 'unsigned int', possible > loss of data > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=GLfloat, > 1> ARRAYTYPE=FloatArrayType, > 1> DataSize=1, > 1> DataType=5126 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Shape(511) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=GLfloat, > 1> ARRAYTYPE=FloatArrayType, > 1> DataSize=1, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=GLfloat, > 1> ARRAYTYPE=FloatArrayType, > 1> DataSize=1, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec3, > 1> ARRAYTYPE=Vec3ArrayType, > 1> DataSize=3, > 1> DataType=5126 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/ref_ptr(29) : > 1> see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec3, > 1> ARRAYTYPE=Vec3ArrayType, > 1> DataSize=3, > 1> DataType=5126 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/ref_ptr(29) : > 1> while > compiling class template member function 'osg::ref_ptr<T>::ref_ptr(T *)' > 1> with > 1> [ > 1> T=osg::Vec3Array > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Shape(458) : see > reference to class template instantiation 'osg::ref_ptr<T>' being > compiled > 1> with > 1> [ > 1> T=osg::Vec3Array > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec3, > 1> ARRAYTYPE=Vec3ArrayType, > 1> DataSize=3, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec4d, > 1> ARRAYTYPE=Vec4dArrayType, > 1> DataSize=4, > 1> DataType=5130 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec4d, > 1> ARRAYTYPE=Vec4dArrayType, > 1> DataSize=4, > 1> DataType=5130 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : > 1> while > compiling class template member function 'void > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::accept(osg::ConstAr > rayVis > itor &) const' > 1> with > 1> [ > 1> T=GLfloat, > 1> ARRAYTYPE=FloatArrayType, > 1> DataSize=1, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec4d, > 1> ARRAYTYPE=Vec4dArrayType, > 1> DataSize=4, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec3d, > 1> ARRAYTYPE=Vec3dArrayType, > 1> DataSize=3, > 1> DataType=5130 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec3d, > 1> ARRAYTYPE=Vec3dArrayType, > 1> DataSize=3, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec3d, > 1> ARRAYTYPE=Vec3dArrayType, > 1> DataSize=3, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec2d, > 1> ARRAYTYPE=Vec2dArrayType, > 1> DataSize=2, > 1> DataType=5130 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec2d, > 1> ARRAYTYPE=Vec2dArrayType, > 1> DataSize=2, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec2d, > 1> ARRAYTYPE=Vec2dArrayType, > 1> DataSize=2, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec4s, > 1> ARRAYTYPE=Vec4sArrayType, > 1> DataSize=4, > 1> DataType=5122 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec4s, > 1> ARRAYTYPE=Vec4sArrayType, > 1> DataSize=4, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec4s, > 1> ARRAYTYPE=Vec4sArrayType, > 1> DataSize=4, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec3s, > 1> ARRAYTYPE=Vec3sArrayType, > 1> DataSize=3, > 1> DataType=5122 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec3s, > 1> ARRAYTYPE=Vec3sArrayType, > 1> DataSize=3, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec3s, > 1> ARRAYTYPE=Vec3sArrayType, > 1> DataSize=3, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec2s, > 1> ARRAYTYPE=Vec2sArrayType, > 1> DataSize=2, > 1> DataType=5122 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec2s, > 1> ARRAYTYPE=Vec2sArrayType, > 1> DataSize=2, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec2s, > 1> ARRAYTYPE=Vec2sArrayType, > 1> DataSize=2, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec4b, > 1> ARRAYTYPE=Vec4bArrayType, > 1> DataSize=4, > 1> DataType=5120 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec4b, > 1> ARRAYTYPE=Vec4bArrayType, > 1> DataSize=4, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec4b, > 1> ARRAYTYPE=Vec4bArrayType, > 1> DataSize=4, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec3b, > 1> ARRAYTYPE=Vec3bArrayType, > 1> DataSize=3, > 1> DataType=5120 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec3b, > 1> ARRAYTYPE=Vec3bArrayType, > 1> DataSize=3, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec3b, > 1> ARRAYTYPE=Vec3bArrayType, > 1> DataSize=3, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec2b, > 1> ARRAYTYPE=Vec2bArrayType, > 1> DataSize=2, > 1> DataType=5120 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec2b, > 1> ARRAYTYPE=Vec2bArrayType, > 1> DataSize=2, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec2b, > 1> ARRAYTYPE=Vec2bArrayType, > 1> DataSize=2, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec4ub, > 1> ARRAYTYPE=Vec4ubArrayType, > 1> DataSize=4, > 1> DataType=5121 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec4ub, > 1> ARRAYTYPE=Vec4ubArrayType, > 1> DataSize=4, > 1> DataType=5121 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec4ub, > 1> ARRAYTYPE=Vec4ubArrayType, > 1> DataSize=4, > 1> DataType=5121 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec4, > 1> ARRAYTYPE=Vec4ArrayType, > 1> DataSize=4, > 1> DataType=5126 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec4, > 1> ARRAYTYPE=Vec4ArrayType, > 1> DataSize=4, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec4, > 1> ARRAYTYPE=Vec4ArrayType, > 1> DataSize=4, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=osg::Vec2, > 1> ARRAYTYPE=Vec2ArrayType, > 1> DataSize=2, > 1> DataType=5126 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=osg::Vec2, > 1> ARRAYTYPE=Vec2ArrayType, > 1> DataSize=2, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=osg::Vec2, > 1> ARRAYTYPE=Vec2ArrayType, > 1> DataSize=2, > 1> DataType=5126 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(229) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(229) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSize(vo > id) > const' > 1> with > 1> [ > 1> T=GLdouble, > 1> ARRAYTYPE=DoubleArrayType, > 1> DataSize=1, > 1> DataType=5130 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>' being compiled > 1> with > 1> [ > 1> T=GLdouble, > 1> ARRAYTYPE=DoubleArrayType, > 1> DataSize=1, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(230) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(230) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements(void > ) > const' > 1> with > 1> [ > 1> T=GLdouble, > 1> ARRAYTYPE=DoubleArrayType, > 1> DataSize=1, > 1> DataType=5130 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLuint, > 1> ARRAYTYPE=UIntArrayType, > 1> DataSize=1, > 1> DataType=5125 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLuint, > 1> ARRAYTYPE=UIntArrayType, > 1> DataSize=1, > 1> DataType=5125 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLuint, > 1> ARRAYTYPE=UIntArrayType, > 1> DataSize=1, > 1> DataType=5125 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLushort, > 1> ARRAYTYPE=UShortArrayType, > 1> DataSize=1, > 1> DataType=5123 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLushort, > 1> ARRAYTYPE=UShortArrayType, > 1> DataSize=1, > 1> DataType=5123 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLushort, > 1> ARRAYTYPE=UShortArrayType, > 1> DataSize=1, > 1> DataType=5123 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLubyte, > 1> ARRAYTYPE=UByteArrayType, > 1> DataSize=1, > 1> DataType=5121 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLubyte, > 1> ARRAYTYPE=UByteArrayType, > 1> DataSize=1, > 1> DataType=5121 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLubyte, > 1> ARRAYTYPE=UByteArrayType, > 1> DataSize=1, > 1> DataType=5121 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLint, > 1> ARRAYTYPE=IntArrayType, > 1> DataSize=1, > 1> DataType=5124 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLint, > 1> ARRAYTYPE=IntArrayType, > 1> DataSize=1, > 1> DataType=5124 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLint, > 1> ARRAYTYPE=IntArrayType, > 1> DataSize=1, > 1> DataType=5124 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLshort, > 1> ARRAYTYPE=ShortArrayType, > 1> DataSize=1, > 1> DataType=5122 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLshort, > 1> ARRAYTYPE=ShortArrayType, > 1> DataSize=1, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLshort, > 1> ARRAYTYPE=ShortArrayType, > 1> DataSize=1, > 1> DataType=5122 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(315) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(315) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getTotalDataSi > ze(voi > d) const' > 1> with > 1> [ > 1> T=GLbyte, > 1> ARRAYTYPE=ByteArrayType, > 1> DataSize=1, > 1> DataType=5120 > 1> ] > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(500) : see > reference to class template instantiation > 'osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>' being > compiled > 1> with > 1> [ > 1> T=GLbyte, > 1> ARRAYTYPE=ByteArrayType, > 1> DataSize=1, > 1> DataType=5120 > 1> ] > 1>C:\Program Files\OpenSceneGraph\include\osg/Array(316) : warning C4267: > 'return' : conversion from 'size_t' to 'unsigned int', possible loss > of data > 1> C:\Program Files\OpenSceneGraph\include\osg/Array(316) : > 1> while > compiling class template member function 'unsigned int > osg::TemplateIndexArray<T,ARRAYTYPE,DataSize,DataType>::getNumElements > (void) > const' > 1> with > 1> [ > 1> T=GLbyte, > 1> ARRAYTYPE=ByteArrayType, > 1> DataSize=1, > 1> DataType=5120 > 1> ] > 1>Build log was saved at > "file://c:\Projects\Physics\PolyTrans\osgPT\osgdb_PolyTrans\VS8\src\os > gdb_Po > lyTrans\Release\BuildLog.htm" > 1>osgdb_PolyTrans - 0 error(s), 70 warning(s) > ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped > ========== > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

