]> git.mxchange.org Git - flightgear.git/commitdiff
Suppress warnings
authorfredb <fredb>
Sun, 14 Jun 2009 11:00:01 +0000 (11:00 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 15 Jun 2009 08:29:44 +0000 (10:29 +0200)
src/Instrumentation/mk_viii.hxx
src/Main/fg_commands.cxx
src/Model/modelmgr.cxx

index afacd10fd4bc0cbd89fcf786db085bf6efcd3c8d..8a28d4adc0934a08284733d1295d03754eef6613 100755 (executable)
@@ -40,6 +40,11 @@ using std::map;
 #include <Airports/simple.hxx>
 #include <Main/globals.hxx>
 
+#ifdef _MSC_VER
+#  pragma warning( push )
+#  pragma warning( disable: 4355 )
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 // MK_VIII ////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////
@@ -1646,4 +1651,8 @@ public:
   virtual void update (double dt);
 };
 
+#ifdef _MSC_VER
+#  pragma warning( pop )
+#endif
+
 #endif // __INSTRUMENTS_MK_VIII_HXX
index 58546014d1fdb588fb621cf66d6e8eb39f7ddccf..7ca69fca4b34d8b424f6ba1f2a0e05ea05dd82db 100644 (file)
@@ -1250,7 +1250,7 @@ do_play_audio_sample (const SGPropertyNode * arg)
         fx->play_message( path, file, volume );
         return true;
 
-    } catch (const sg_io_exception& e) {
+    } catch (const sg_io_exception&) {
         SG_LOG(SG_GENERAL, SG_ALERT, "play-audio-sample: "
                 "failed to load" << path << '/' << file);
         return false;
index 2b547cf027486a0cfcefbad6f69f98329ada551c..600086d29e9d77ece1819bc319f6e8f6fac1fa87 100644 (file)
@@ -3,6 +3,10 @@
 //
 // This file is in the Public Domain, and comes with no warranty.
 
+#ifdef _MSC_VER
+#  pragma warning( disable: 4355 )
+#endif
+
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
 #endif
@@ -172,7 +176,7 @@ struct UpdateFunctor : public std::unary_function<FGModelMgr::Instance*, void>
                 pitch = testNan(instance->pitch_deg_node->getDoubleValue());
             if (instance->heading_deg_node != 0)
                 heading = testNan(instance->heading_deg_node->getDoubleValue());
-        } catch (const sg_range_exception& e) {
+        } catch (const sg_range_exception&) {
             const char *path = instance->node->getStringValue("path",
                                                               "unknown");
             SG_LOG(SG_GENERAL, SG_INFO, "Instance of model " << path