[cpp-sp] 05/08: Turn off common warning ReloadableXMLFile.h BoostPropertySet.h AbstractLoggingService.h

Rod Widdowson rdw at steadingsoftware.com
Sat Dec 7 15:54:35 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=b7fdb0becc8cb4a721a89708acbd5f71125128f9

commit b7fdb0becc8cb4a721a89708acbd5f71125128f9
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Dec 7 15:24:19 2024 +0000

    Turn off common warning
    ReloadableXMLFile.h
    BoostPropertySet.h
    AbstractLoggingService.h
---
 shibsp/logging/impl/AbstractLoggingService.h | 11 +++++++++++
 shibsp/util/BoostPropertySet.h               |  9 +++++++++
 shibsp/util/ReloadableXMLFile.h              | 10 ++++++++++
 3 files changed, 30 insertions(+)

diff --git a/shibsp/logging/impl/AbstractLoggingService.h b/shibsp/logging/impl/AbstractLoggingService.h
index 4676c86d..16f80ce4 100644
--- a/shibsp/logging/impl/AbstractLoggingService.h
+++ b/shibsp/logging/impl/AbstractLoggingService.h
@@ -34,6 +34,11 @@
 
 #include <boost/property_tree/ptree_fwd.hpp>
 
+#if defined (_MSC_VER)
+#    pragma warning( push )
+#    pragma warning( disable : 4251 )
+#endif
+
 namespace shibsp {
 
      /**
@@ -85,4 +90,10 @@ namespace shibsp {
 
 };
 
+
+#if defined (_MSC_VER)
+#   pragma warning( pop )
+#endif
+
+
 #endif /* __shibsp_abstractlogging_h__ */
diff --git a/shibsp/util/BoostPropertySet.h b/shibsp/util/BoostPropertySet.h
index 7188c8af..fd1208e0 100644
--- a/shibsp/util/BoostPropertySet.h
+++ b/shibsp/util/BoostPropertySet.h
@@ -26,6 +26,11 @@
 #include <set>
 #include <boost/property_tree/ptree.hpp>
 
+#if defined (_MSC_VER)
+#    pragma warning( push )
+#    pragma warning( disable : 4251 )
+#endif
+
 namespace shibsp {
 
     /**
@@ -73,6 +78,10 @@ namespace shibsp {
 		std::set<std::string> m_unset;
     };
 
+#if defined (_MSC_VER)
+#   pragma warning( pop )
+#endif
+
 };
 
 #endif /* __shibsp_boostpropset_h__ */
diff --git a/shibsp/util/ReloadableXMLFile.h b/shibsp/util/ReloadableXMLFile.h
index 4ec4b96c..7e9a1a45 100644
--- a/shibsp/util/ReloadableXMLFile.h
+++ b/shibsp/util/ReloadableXMLFile.h
@@ -33,6 +33,12 @@
 # include <shared_mutex>
 #endif
 
+#if defined (_MSC_VER)
+#    pragma warning( push )
+#    pragma warning( disable : 4251 )
+#endif
+
+
 namespace shibsp {
 
     class SHIBSP_API Category;
@@ -172,6 +178,10 @@ namespace shibsp {
 #endif
     };
 
+#if defined (_MSC_VER)
+#   pragma warning( pop )
+#endif
+
 };
 
 #endif /* __shibsp_ReloadableXMLFile_h__ */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list