From 07da1e7e1a753c59b805a6a071766ee08ac3c826 Mon Sep 17 00:00:00 2001 From: torsten Date: Thu, 20 Aug 2009 08:43:15 +0000 Subject: [PATCH] warning fix --- simgear/environment/visual_enviro.cxx | 3 ++- simgear/props/props.cxx | 4 ++++ simgear/props/props.hxx | 2 ++ simgear/props/props_io.cxx | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/simgear/environment/visual_enviro.cxx b/simgear/environment/visual_enviro.cxx index fb2cfa6d..42b61fd0 100644 --- a/simgear/environment/visual_enviro.cxx +++ b/simgear/environment/visual_enviro.cxx @@ -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; diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 9524e78e..0bc56dcd 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -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; } diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index 93c95682..dc987134 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -1861,6 +1861,8 @@ T SGPropertyNode::getValue(typename boost::disable_if_c(make_string()); break; + default: // avoid compiler warning + break; } return SGRawValue::DefaultValue(); } diff --git a/simgear/props/props_io.cxx b/simgear/props/props_io.cxx index 44380186..232e3c2c 100644 --- a/simgear/props/props_io.cxx +++ b/simgear/props/props_io.cxx @@ -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 -- 2.39.5