From f1053c52dc00185d952188036c5a8949102f84d4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 13 Mar 2009 11:06:12 +0000 Subject: [PATCH] Warning fixes --- examples/osganimationmorph/osganimationmorph.cpp | 2 +- examples/osgmovie/osgmovie.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/osganimationmorph/osganimationmorph.cpp b/examples/osganimationmorph/osganimationmorph.cpp index 84929edf1..6eaf3f664 100644 --- a/examples/osganimationmorph/osganimationmorph.cpp +++ b/examples/osganimationmorph/osganimationmorph.cpp @@ -37,7 +37,7 @@ struct GeometryFinder : public osg::NodeVisitor { if (_geom.valid()) return; - for (int i = 0; i < geode.getNumDrawables(); i++) + for (unsigned int i = 0; i < geode.getNumDrawables(); i++) { osg::Geometry* geom = dynamic_cast(geode.getDrawable(i)); if (geom) { diff --git a/examples/osgmovie/osgmovie.cpp b/examples/osgmovie/osgmovie.cpp index 6d5f5274e..48b7d27df 100644 --- a/examples/osgmovie/osgmovie.cpp +++ b/examples/osgmovie/osgmovie.cpp @@ -500,7 +500,9 @@ int main(int argc, char** argv) bool useAudioSink = false; while(arguments.read("--audio")) { useAudioSink = true; } +#if USE_SDL unsigned int numAudioStreamsEnabled = 0; +#endif for(int i=1;igetName()<<"]"<setAudioSink(new SDLAudioSink(audioStream));