[osg-users] Tons of warnings from include files

Mario Valle mvalle at cscs.ch
Sun Oct 7 21:06:41 PDT 2007


In my project the interface file to OSG contains the following includes:
#include <osgViewer/Viewer>
#include <osg/ShapeDrawable>
#include <osg/Quat>
When compiled in VS 7.1 it produces tons of warnings (see below). Is 
something that happens only to me?
Should I add the pragma needed to suppress this warning to all the OSG 
include files? Or is something that should be fixed?
I'm using OSG2.2 on WinXP and VS7.1 and CMake 2.4.7
Thanks for clarifying!
                                     mario

C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(280) : warning 
C4512: 'osg::VertexBufferObject' : assignment operator could not be 
generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(247) : see 
declaration of 'osg::VertexBufferObject'
C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(316) : warning 
C4512: 'osg::ElementBufferObject' : assignment operator could not be 
generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(283) : see 
declaration of 'osg::ElementBufferObject'
C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(349) : warning 
C4512: 'osg::PixelBufferObject' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\BufferObject(319) : see 
declaration of 'osg::PixelBufferObject'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Array(249) : warning C4512: 
'osg::IndexArray' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Array(231) : see 
declaration of 'osg::IndexArray'
C:\apps\OpenSceneGraph-2.2.0\include\osg\NodeVisitor(313) : warning 
C4512: 'osg::NodeAcceptOp' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\NodeVisitor(308) : see 
declaration of 'osg::NodeAcceptOp'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(184) : warning C4512: 
'osg::Sphere' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(144) : see 
declaration of 'osg::Sphere'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(237) : warning C4512: 
'osg::Box' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(186) : see 
declaration of 'osg::Box'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(299) : warning C4512: 
'osg::Cone' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(241) : see 
declaration of 'osg::Cone'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(355) : warning C4512: 
'osg::Cylinder' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(301) : see 
declaration of 'osg::Cylinder'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(411) : warning C4512: 
'osg::Capsule' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(357) : see 
declaration of 'osg::Capsule'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(427) : warning C4512: 
'osg::InfinitePlane' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(413) : see 
declaration of 'osg::InfinitePlane'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(459) : warning C4512: 
'osg::TriangleMesh' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(429) : see 
declaration of 'osg::TriangleMesh'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(475) : warning C4512: 
'osg::ConvexHull' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(461) : see 
declaration of 'osg::ConvexHull'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(579) : warning C4512: 
'osg::HeightField' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(477) : see 
declaration of 'osg::HeightField'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(643) : warning C4512: 
'osg::CompositeShape' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Shape(584) : see 
declaration of 'osg::CompositeShape'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(349) : warning 
C4512: 'osg::DrawArrays' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(295) : see 
declaration of 'osg::DrawArrays'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(408) : warning 
C4512: 'osg::DrawArrayLengths' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(351) : see 
declaration of 'osg::DrawArrayLengths'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(486) : warning 
C4512: 'osg::DrawElements' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(410) : see 
declaration of 'osg::DrawElements'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(555) : warning 
C4512: 'osg::DrawElementsUByte' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(488) : see 
declaration of 'osg::DrawElementsUByte'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(630) : warning 
C4512: 'osg::DrawElementsUShort' : assignment operator could not be 
generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(558) : see 
declaration of 'osg::DrawElementsUShort'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(705) : warning 
C4512: 'osg::DrawElementsUInt' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PrimitiveSet(632) : see 
declaration of 'osg::DrawElementsUInt'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Viewport(133) : warning C4512: 
'osg::Viewport' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Viewport(23) : see 
declaration of 'osg::Viewport'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Group(168) : warning C4512: 
'osg::Group' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Group(28) : see 
declaration of 'osg::Group'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Transform(159) : warning C4512: 
'osg::Transform' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Transform(70) : see 
declaration of 'osg::Transform'
C:\apps\OpenSceneGraph-2.2.0\include\osg\ColorMask(96) : warning C4512: 
'osg::ColorMask' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\ColorMask(24) : see 
declaration of 'osg::ColorMask'
C:\apps\OpenSceneGraph-2.2.0\include\osg\ClearNode(71) : warning C4512: 
'osg::ClearNode' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\ClearNode(30) : see 
declaration of 'osg::ClearNode'
C:\apps\OpenSceneGraph-2.2.0\include\osg\OperationThread(37) : warning 
C4512: 'osg::RefBlock' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\OperationThread(30) : 
see declaration of 'osg::RefBlock'
C:\apps\OpenSceneGraph-2.2.0\include\osg\OperationThread(47) : warning 
C4512: 'osg::RefBlockCount' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\OperationThread(39) : 
see declaration of 'osg::RefBlockCount'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(33) : warning 
C4511: 'osg::GraphicsThread' : copy constructor could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(25) : 
see declaration of 'osg::GraphicsThread'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(33) : warning 
C4512: 'osg::GraphicsThread' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(25) : 
see declaration of 'osg::GraphicsThread'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(89) : warning 
C4511: 'osg::ReleaseContext_Block_MakeCurrentOperation' : copy 
constructor could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(81) : 
see declaration of 'osg::ReleaseContext_Block_MakeCurrentOperation'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(89) : warning 
C4512: 'osg::ReleaseContext_Block_MakeCurrentOperation' : assignment 
operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(81) : 
see declaration of 'osg::ReleaseContext_Block_MakeCurrentOperation'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(98) : warning 
C4512: 'osg::BlockAndFlushOperation' : assignment operator could not be 
generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(91) : 
see declaration of 'osg::BlockAndFlushOperation'
C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(132) : warning 
C4512: 'osg::EndOfDynamicDrawBlock' : assignment operator could not be 
generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\GraphicsThread(121) : 
see declaration of 'osg::EndOfDynamicDrawBlock'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Texture(895) : warning C4512: 
'osg::Texture' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Texture(262) : see 
declaration of 'osg::Texture'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Light(173) : warning C4512: 
'osg::Light' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Light(24) : see 
declaration of 'osg::Light'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Geode(161) : warning C4512: 
'osg::Geode' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Geode(28) : see 
declaration of 'osg::Geode'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Billboard(128) : warning C4512: 
'osg::Billboard' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Billboard(26) : see 
declaration of 'osg::Billboard'
C:\apps\OpenSceneGraph-2.2.0\include\osg\LOD(133) : warning C4512: 
'osg::LOD' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\LOD(35) : see 
declaration of 'osg::LOD'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Switch(90) : warning C4512: 
'osg::Switch' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Switch(26) : see 
declaration of 'osg::Switch'
C:\apps\OpenSceneGraph-2.2.0\include\osg\LightSource(89) : warning 
C4512: 'osg::LightSource' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\LightSource(24) : see 
declaration of 'osg::LightSource'
C:\apps\OpenSceneGraph-2.2.0\include\osg\Projection(57) : warning C4512: 
'osg::Projection' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\Projection(24) : see 
declaration of 'osg::Projection'
C:\apps\OpenSceneGraph-2.2.0\include\osg\OccluderNode(56) : warning 
C4512: 'osg::OccluderNode' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\OccluderNode(27) : see 
declaration of 'osg::OccluderNode'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(185) : 
warning C4511: 'osgViewer::GraphicsWindow' : copy constructor could not 
be generated
        
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(39) : see 
declaration of 'osgViewer::GraphicsWindow'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(185) : 
warning C4512: 'osgViewer::GraphicsWindow' : assignment operator could 
not be generated
        
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(39) : see 
declaration of 'osgViewer::GraphicsWindow'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(244) : 
warning C4511: 'osgViewer::GraphicsWindowEmbedded' : copy constructor 
could not be generated
        
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(188) : see 
declaration of 'osgViewer::GraphicsWindowEmbedded'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(244) : 
warning C4512: 'osgViewer::GraphicsWindowEmbedded' : assignment operator 
could not be generated
        
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\GraphicsWindow(188) : see 
declaration of 'osgViewer::GraphicsWindowEmbedded'
C:\apps\OpenSceneGraph-2.2.0\include\osgUtil\RenderStage(261) : warning 
C4512: 'osgUtil::RenderStage' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osgUtil\RenderStage(37) : 
see declaration of 'osgUtil::RenderStage'
C:\apps\OpenSceneGraph-2.2.0\include\osg\CoordinateSystemNode(136) : 
warning C4512: 'osg::CoordinateSystemNode' : assignment operator could 
not be generated
        
C:\apps\OpenSceneGraph-2.2.0\include\osg\CoordinateSystemNode(83) : see 
declaration of 'osg::CoordinateSystemNode'
C:\apps\OpenSceneGraph-2.2.0\include\osgGA\GUIEventHandler(122) : 
warning C4512: 'osgGA::GUIEventHandler' : assignment operator could not 
be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osgGA\GUIEventHandler(50) : 
see declaration of 'osgGA::GUIEventHandler'
C:\apps\OpenSceneGraph-2.2.0\include\osgGA\MatrixManipulator(201) : 
warning C4512: 'osgGA::MatrixManipulator' : assignment operator could 
not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osgGA\MatrixManipulator(39) 
: see declaration of 'osgGA::MatrixManipulator'
C:\apps\OpenSceneGraph-2.2.0\include\osg\PagedLOD(122) : warning C4512: 
'osg::PagedLOD' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osg\PagedLOD(23) : see 
declaration of 'osg::PagedLOD'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\View(223) : warning 
C4512: 'osgViewer::View' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\View(34) : see 
declaration of 'osgViewer::View'
C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\Viewer(114) : warning 
C4512: 'osgViewer::Viewer' : assignment operator could not be generated
        C:\apps\OpenSceneGraph-2.2.0\include\osgViewer\Viewer(27) : see 
declaration of 'osgViewer::Viewer'

-- 
Ing. Mario Valle
Visualization Group                              | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82




More information about the osg-users mailing list