X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Fmodelmgr.cxx;h=3478a68c5c9bf973a7fe8195c1abe64ad43ae5e2;hb=2ea50c63bbb95e143662de2f136c79898236e38d;hp=2b547cf027486a0cfcefbad6f69f98329ada551c;hpb=667e64e1ebc86a0c53112b92b53475898f315c36;p=flightgear.git diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index 2b547cf02..3478a68c5 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -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 #endif @@ -12,6 +16,7 @@ #include #include #include +#include #include @@ -172,7 +177,7 @@ struct UpdateFunctor : public std::unary_function 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