Fixed warnings

This commit is contained in:
Robert Osfield
2009-01-07 11:24:47 +00:00
parent 98bd058317
commit 418dc34776
43 changed files with 67 additions and 65 deletions

View File

@@ -311,7 +311,8 @@ osg::MatrixTransform* setupAnimtkNode(osg::Geode* staticGeode)
int main(int argc, char** argv)
{
osgViewer::Viewer viewer;
osg::ArgumentParser arguments(&argc, argv);
osgViewer::Viewer viewer(arguments);
osgGA::TrackballManipulator* tbm = new osgGA::TrackballManipulator();

View File

@@ -249,7 +249,9 @@ osg::MatrixTransform* setupAnimtkNode()
int main (int argc, char* argv[])
{
osgViewer::Viewer viewer;
osg::ArgumentParser arguments(&argc, argv);
osgViewer::Viewer viewer(arguments);
osgGA::TrackballManipulator* manipulator = new osgGA::TrackballManipulator();
viewer.setCameraManipulator(manipulator);

View File

@@ -156,7 +156,9 @@ void initVertexMap(osgAnimation::Bone* b0,
int main (int argc, char* argv[])
{
osgViewer::Viewer viewer;
osg::ArgumentParser arguments(&argc, argv);
osgViewer::Viewer viewer(arguments);
viewer.setCameraManipulator(new osgGA::TrackballManipulator());
osg::ref_ptr<osgAnimation::Skeleton> skelroot = new osgAnimation::Skeleton;

View File

@@ -60,7 +60,9 @@ osg::ref_ptr<osg::Geode> createAxis()
int main (int argc, char* argv[])
{
osgViewer::Viewer viewer;
osg::ArgumentParser arguments(&argc, argv);
osgViewer::Viewer viewer(arguments);
viewer.setCameraManipulator(new osgGA::TrackballManipulator());
osg::Group* root = new osg::Group;

View File

@@ -109,7 +109,7 @@ struct ExampleTimelineUsage : public osgGA::GUIEventHandler
_scratchNose->setCallback(_scratchNose->getNumFrames()-1, new NoseEnd);
}
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&)
{
if (ea.getEventType() == osgGA::GUIEventAdapter::KEYUP)
{

View File

@@ -44,13 +44,13 @@ struct ButtonFunctor: public WidgetSampler
ButtonFunctor(): _speed(5) { _direction = -_speed; _previous = 0;}
bool enter(osgWidget::Event& ev)
bool enter(osgWidget::Event&)
{
_direction = _speed;
return true;
}
bool leave(osgWidget::Event& ev)
bool leave(osgWidget::Event&)
{
_direction = -_speed;
return true;

View File

@@ -42,7 +42,7 @@ void AnimtkKeyEventHandler::printUsage() const
}
bool AnimtkKeyEventHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa,
bool AnimtkKeyEventHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&,
osg::Object*, osg::NodeVisitor*)
{
AnimtkViewerModelController& mc = AnimtkViewerModelController::instance();

View File

@@ -119,7 +119,9 @@ createStateSet()
int main( int argc, char **argv )
{
// Make a scene graph consisting of a single Geode, containing
osg::ArgumentParser arguments(&argc, argv);
// Make a scene graph consisting of a single Geode, containing
// a single Geometry, and a single PrimitiveSet.
osg::ref_ptr< osg::Geode > geode = new osg::Geode;
@@ -142,7 +144,7 @@ int main( int argc, char **argv )
// osgDB::writeNodeFile(*geode, "instanced.osg");
osgViewer::Viewer viewer;
osgViewer::Viewer viewer(arguments);
viewer.setSceneData( geode.get() );
return viewer.run();
}

View File

@@ -179,7 +179,7 @@ public:
///////////////////////////////////////////////////////////////////////////
int main( int argc, char *argv[] )
int main( int , char * )
{
osg::Geode* root( new osg::Geode );
root->addDrawable( new SomePoints );

View File

@@ -236,7 +236,7 @@ struct SnapeImageHandler : public osgGA::GUIEventHandler
_key(key),
_snapImage(si) {}
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter&)
{
if (ea.getHandled()) return false;

View File

@@ -315,7 +315,6 @@ bool MovieEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIAction
default:
return false;
}
return false;
}
void MovieEventHandler::getUsage(osg::ApplicationUsage& usage) const

View File

@@ -86,7 +86,6 @@ class ContextTest : public MemoryTest
if (_pbuffer) throw "Failed to create PixelBuffer";
else throw "Failed to create GraphicsWindow";
}
return 0;
}
@@ -170,7 +169,6 @@ class TextureTest : public GLMemoryTest
{
throw "Invalid texture size of 0,0,0";
}
return 0;
}

View File

@@ -127,7 +127,7 @@ public:
osgDB::Input fr;
fr.attach(&fin);
bool readFilename;
bool readFilename = false;
while(!fr.eof())
{

View File

@@ -479,6 +479,8 @@ protected:
private:
TestRunner& operator = (const TestRunner&) { return *this; }
TestReport _db; // Results
TestContext& _ctx; // The Global Testing Context
std::vector<std::string> _tests; // Specified Tests