From 76bad19117052a4d4e977db6e1a0128f28ba9e9d Mon Sep 17 00:00:00 2001 From: andheh <36114788+andheh@users.noreply.github.com> Date: Mon, 26 Feb 2018 11:40:47 +0100 Subject: [PATCH] fixed "unknown pragma" warning in src/Shuttle.cpp --- src/Shuttle.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Shuttle.cpp b/src/Shuttle.cpp index 54d4a0bbd..c715fd770 100644 --- a/src/Shuttle.cpp +++ b/src/Shuttle.cpp @@ -332,9 +332,11 @@ bool ShuttleParams::ExchangeWithMaster(const wxString & WXUNUSED(Name)) return true; } - +#ifdef _MSC_VER +// If this is compiled with MSVC (Visual Studio) #pragma warning( push ) #pragma warning( disable: 4100 ) // unused parameters. +#endif //_MSC_VER // The ShouldSet and CouldGet functions have an important side effect @@ -698,7 +700,10 @@ void ShuttleGetDefinition::DefineEnum( int&var, const wxChar * key, const int vd EndStruct(); } +#ifdef _MSC_VER +// If this is compiled with MSVC (Visual Studio) #pragma warning( pop ) +#endif //_MSC_VER