Warning fixes
This commit is contained in:
parent
a8aad71d03
commit
f1053c52dc
@ -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) {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user