Hi Bjorn, Perhaps it's time to just remove that if statement and standarise of the writeObject().
Robert. On 18 August 2015 at 12:43, Björn Blissing <[email protected]> wrote: > Hi, > > Since 3.4.0 I get a lot of warnings from line 148, 149, 153 & 154 in > osgDB::OutputStreamer: > > > Code: > OutputStream& operator<<( const osg::Array* a ) { if > (OPENSCENEGRAPH_SOVERSION>=112) writeObject(a); else writeArray(a); return > *this; } > OutputStream& operator<<( const osg::PrimitiveSet* p ) { if > (OPENSCENEGRAPH_SOVERSION>=112) writeObject(p); else writePrimitiveSet(p); > return *this; } > > ... > > OutputStream& operator<<( const osg::ref_ptr<osg::Array>& ptr ) { if > (OPENSCENEGRAPH_SOVERSION>=112) writeObject(ptr.get()); else > writeArray(ptr.get()); return *this; } > OutputStream& operator<<( const osg::ref_ptr<osg::PrimitiveSet>& ptr ) { > if (OPENSCENEGRAPH_SOVERSION>=112) writeObject(ptr.get()); else > writePrimitiveSet(ptr.get()); return *this; } > > > > > The warning is: warning C4127: conditional expression is constant > > This warning id is not among the ones suppressed inside the osgDB::Export > header. > > I have added this warning to the list of suppressed warnings if > OSG_DISABLE_MSVC_WARNINGS is defined. > > Best regards > Björn > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=64822#64822 > > > > > _______________________________________________ > 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
