From a6b90c354bbd45026076546f5f166f08b2585a81 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 27 Sep 2020 20:38:09 +0200 Subject: [PATCH] fix pugi warnings --- contrib/pugixml-1.9/src/pugixml.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/contrib/pugixml-1.9/src/pugixml.hpp b/contrib/pugixml-1.9/src/pugixml.hpp index 8b5e9b92d..1775600f1 100644 --- a/contrib/pugixml-1.9/src/pugixml.hpp +++ b/contrib/pugixml-1.9/src/pugixml.hpp @@ -1251,8 +1251,11 @@ namespace pugi }; #ifndef PUGIXML_NO_EXCEPTIONS -#pragma warning(push) -#pragma warning( disable: 4275 ) + +#ifdef _MSC_VER +# pragma warning(push) +# pragma warning( disable: 4275 ) +#endif // XPath exception class class PUGIXML_CLASS xpath_exception: public std::exception { @@ -1270,7 +1273,9 @@ namespace pugi const xpath_parse_result& result() const; }; #endif -#pragma warning(pop) +#ifdef _MSC_VER +# pragma warning(pop) +#endif // XPath node class (either xml_node or xml_attribute) class PUGIXML_CLASS xpath_node {