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));