From d713fd23157a2af7c4d9f973b486a957c2b6a91d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 22 Oct 2024 13:36:47 -0700 Subject: [PATCH] Define PUGIXML_NOEXCEPT as throw() This is necessary to avoid gcc warnings for exception::what() --- src/pugixml.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pugixml.hpp b/src/pugixml.hpp index e1c1f61..d42d263 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -82,14 +82,14 @@ # endif #endif -// If C++ is 2011 or higher, add 'noexcept' specifiers +// If C++ is 2011 or higher, use 'noexcept' specifiers #ifndef PUGIXML_NOEXCEPT # if __cplusplus >= 201103 # define PUGIXML_NOEXCEPT noexcept # elif defined(_MSC_VER) && _MSC_VER >= 1900 # define PUGIXML_NOEXCEPT noexcept # else -# define PUGIXML_NOEXCEPT +# define PUGIXML_NOEXCEPT throw() # endif #endif