Suppress warnings
This commit is contained in:
parent
d27097d7b8
commit
3b024e3dab
3 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue