From e8d6cec99064cb24678930dfb44f70fd729077cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 13 Feb 2007 22:22:35 +0000 Subject: [PATCH] Fixed warning --- src/osgPlugins/Inventor/ConvertFromInventor.cpp | 2 +- src/osgPlugins/ive/Viewport.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/osgPlugins/Inventor/ConvertFromInventor.cpp b/src/osgPlugins/Inventor/ConvertFromInventor.cpp index 21b508fe6..0cf813bec 100644 --- a/src/osgPlugins/Inventor/ConvertFromInventor.cpp +++ b/src/osgPlugins/Inventor/ConvertFromInventor.cpp @@ -1143,7 +1143,7 @@ void ConvertFromInventor::addPointCB(void* data, SoCallbackAction* action, } ////////////////////////////////////////////////////////////////////// void ConvertFromInventor::_setVRMLImageTexture(const SoVRMLImageTexture* vit, - SoCallbackAction* action) + SoCallbackAction* /*action*/) { _hasVRMLImageTexture = true; ///Coin API to extract VRML97 ImageTexture diff --git a/src/osgPlugins/ive/Viewport.cpp b/src/osgPlugins/ive/Viewport.cpp index 78de3a90d..996460e59 100644 --- a/src/osgPlugins/ive/Viewport.cpp +++ b/src/osgPlugins/ive/Viewport.cpp @@ -30,10 +30,10 @@ void Viewport::write(DataOutputStream* out){ throw Exception("Viewport::write(): Could not cast this osg::Viewport to an osg::Object."); // Write Viewport's properties. - out->writeInt(x()); - out->writeInt(y()); - out->writeInt(width()); - out->writeInt(height()); + out->writeInt(static_cast(x())); + out->writeInt(static_cast(y())); + out->writeInt(static_cast(width())); + out->writeInt(static_cast(height())); } void Viewport::read(DataInputStream* in){