From 553b6e03bf05bba2690c050dc8c4d9b7f42158d4 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Wed, 5 May 2010 21:01:04 +0000 Subject: [PATCH] Suppress dll-interface warnings. --- saml/binding/ArtifactMap.h | 10 ++++++++++ saml/binding/SAMLArtifact.h | 11 ++++++++++- saml/saml2/profile/BrowserSSOProfileValidator.h | 9 +++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/saml/binding/ArtifactMap.h b/saml/binding/ArtifactMap.h index 37e6e22..238cacb 100644 --- a/saml/binding/ArtifactMap.h +++ b/saml/binding/ArtifactMap.h @@ -38,6 +38,11 @@ namespace opensaml { class SAML_API SAMLArtifact; class SAML_DLLLOCAL ArtifactMappings; +#if defined (_MSC_VER) + #pragma warning( push ) + #pragma warning( disable : 4251 ) +#endif + /** * Helper class for SAMLArtifact mapping and retrieval. */ @@ -104,6 +109,11 @@ namespace opensaml { ArtifactMappings* m_mappings; unsigned int m_artifactTTL; }; + +#if defined (_MSC_VER) + #pragma warning( pop ) +#endif + }; #endif /* __saml_artmap_h__ */ diff --git a/saml/binding/SAMLArtifact.h b/saml/binding/SAMLArtifact.h index f97926b..c7e5e9b 100644 --- a/saml/binding/SAMLArtifact.h +++ b/saml/binding/SAMLArtifact.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,6 +30,11 @@ namespace opensaml { +#if defined (_MSC_VER) + #pragma warning( push ) + #pragma warning( disable : 4251 ) +#endif + /** * Base class for SAML 1.x and 2.0 artifacts. */ @@ -138,6 +143,10 @@ namespace opensaml { std::string m_raw; }; +#if defined (_MSC_VER) + #pragma warning( pop ) +#endif + DECL_XMLTOOLING_EXCEPTION(ArtifactException,SAML_EXCEPTIONAPI(SAML_API),opensaml,xmltooling::XMLToolingException,Exceptions related to artifact parsing); /** diff --git a/saml/saml2/profile/BrowserSSOProfileValidator.h b/saml/saml2/profile/BrowserSSOProfileValidator.h index 67b85b9..61bdac2 100644 --- a/saml/saml2/profile/BrowserSSOProfileValidator.h +++ b/saml/saml2/profile/BrowserSSOProfileValidator.h @@ -30,6 +30,11 @@ namespace opensaml { namespace saml2 { +#if defined (_MSC_VER) + #pragma warning( push ) + #pragma warning( disable : 4251 ) +#endif + /** * @deprecated * SAML 2.0 Browser SSO Profile Assertion Validator @@ -80,6 +85,10 @@ namespace opensaml { mutable std::string m_address; }; +#if defined (_MSC_VER) + #pragma warning( pop ) +#endif + }; }; -- 2.1.4