]> git.mxchange.org Git - simgear.git/commitdiff
warning fix
authortorsten <torsten>
Thu, 20 Aug 2009 08:43:15 +0000 (08:43 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:37:02 +0000 (21:37 +0200)
simgear/environment/visual_enviro.cxx
simgear/props/props.cxx
simgear/props/props.hxx
simgear/props/props_io.cxx

index fb2cfa6dd0c5a8f3f5afd52bcb7c9b04aac0d1ea..42b61fd0f6993e6d5b8889dd628060a058b3d179 100644 (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;
 
index 9524e78e47a90ed6194965c2f9f0ec401e8dd2e3..0bc56dcd6fd786241e9b9b57468e95b23e3338af 100644 (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;
 }
index 93c95682ada2eb02cbd617fd06d842073d03e18d..dc9871343b176c8f8d309b68c0b13aa1a837cf42 100644 (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();
 }
index 44380186cf891d061e34ebd40732cd4cffd7e711..232e3c2c79f4b2c4c4da20d00fa2c54e1c00d5f7 100644 (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