Warning fixes

This commit is contained in:
Robert Osfield 2009-03-13 11:06:12 +00:00
parent a8aad71d03
commit f1053c52dc
2 changed files with 3 additions and 2 deletions

View File

@ -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<osg::Geometry*>(geode.getDrawable(i));
if (geom) {

View File

@ -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;i<arguments.argc();++i)
{
@ -516,7 +518,6 @@ int main(int argc, char** argv)
osg::AudioStream* audioStream = audioStreams[0].get();
osg::notify(osg::NOTICE)<<"AudioStream read ["<<audioStream->getName()<<"]"<<std::endl;
#if USE_SDL
if (numAudioStreamsEnabled==0)
{
audioStream->setAudioSink(new SDLAudioSink(audioStream));