warning fix

This commit is contained in:
torsten
2009-08-20 08:43:15 +00:00
committed by Tim Moore
parent 2c07222ef6
commit 07da1e7e1a
4 changed files with 10 additions and 1 deletions

View File

@@ -737,7 +737,7 @@ void SGEnviro::drawLightning(void) {
return;
list_of_lightning::iterator iLightning;
// play 'thunder' for lightning
if( snd_active )
if( snd_active ) {
if( !snd_playing ) {
// wait until sound has reached us
snd_timer += dt;
@@ -765,6 +765,7 @@ void SGEnviro::drawLightning(void) {
}
}
}
if( ! lightning_enable_state )
return;

View File

@@ -519,6 +519,8 @@ SGPropertyNode::clearValue ()
}
_local_val.string_val = 0;
break;
default: // avoid compiler warning
break;
}
delete _value.val;
_value.val = 0;
@@ -1592,6 +1594,8 @@ std::ostream& SGPropertyNode::printOn(std::ostream& stream) const
break;
case props::NONE:
break;
default: // avoid compiler warning
break;
}
return stream;
}

View File

@@ -1861,6 +1861,8 @@ T SGPropertyNode::getValue(typename boost::disable_if_c<simgear::props
case UNSPECIFIED:
return simgear::parseString<T>(make_string());
break;
default: // avoid compiler warning
break;
}
return SGRawValue<T>::DefaultValue();
}

View File

@@ -437,6 +437,8 @@ getTypeName (simgear::props::Type type)
case props::ALIAS:
case props::NONE:
return "unspecified";
default: // avoid compiler warning
break;
}
// keep the compiler from squawking