You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sa...@apache.org on 2019/01/03 21:34:45 UTC
[geode-native] 01/01: GEODE-6245: Fix Microsoft pragma warnings
This is an automated email from the ASF dual-hosted git repository.
sai_boorlagadda pushed a commit to branch feature/GEODE-6245
in repository https://gitbox.apache.org/repos/asf/geode-native.git
commit a2f59e4467219de16dc50cbcd87e7137ab3133ff
Author: Sai Boorlagadda <sb...@pivotal.io>
AuthorDate: Thu Jan 3 13:34:24 2019 -0800
GEODE-6245: Fix Microsoft pragma warnings
Signed-off-by: Matthew Reddington <mr...@pivotal.io>
---
cppcache/include/geode/Exception.hpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cppcache/include/geode/Exception.hpp b/cppcache/include/geode/Exception.hpp
index 2df6d3f..8bde954 100644
--- a/cppcache/include/geode/Exception.hpp
+++ b/cppcache/include/geode/Exception.hpp
@@ -33,9 +33,11 @@ namespace client {
class StackTrace;
+#if defined(_MSC_VER)
// Ignore C4275 - This class extends std C++ class
#pragma warning(push)
#pragma warning(disable : 4275)
+#endif
/**
* A description of an exception that occurred during a cache operation.
@@ -73,7 +75,9 @@ class APACHE_GEODE_EXPORT Exception : public std::exception {
std::shared_ptr<StackTrace> stack_;
};
+#if defined(_MSC_VER)
#pragma warning(pop)
+#endif
} // namespace client
} // namespace geode