summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-12 08:24:42 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-12 08:24:42 -0500
commitc6289edd44815a0d42823e8c0f283fc25d7506de (patch)
tree26e9a8bf0807f0d7d29bff175047677fee6c3517
parent788cd1794dc39e382eb6612aa256918d8e0d3a55 (diff)
downloadcryptopp-git-c6289edd44815a0d42823e8c0f283fc25d7506de.tar.gz
Try to fix MSVC C4589 warning again (GH #214)
This one is a chronic problem. It appears Microsoft needs to fix it in their compiler
-rw-r--r--wait.cpp3
-rw-r--r--wait.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/wait.cpp b/wait.cpp
index 3356a0d0..17f42ffe 100644
--- a/wait.cpp
+++ b/wait.cpp
@@ -3,8 +3,11 @@
#include "pch.h"
#include "config.h"
+// http://connect.microsoft.com/VisualStudio/feedback/details/1581706
+// and http://github.com/weidai11/cryptopp/issues/214
#if CRYPTOPP_MSC_VERSION
# pragma warning(disable: 4189)
+# pragma warning(disable: 4589)
#endif
#if !defined(NO_OS_DEPENDENCE) && (defined(SOCKETS_AVAILABLE) || defined(WINDOWS_PIPES_AVAILABLE))
diff --git a/wait.h b/wait.h
index 0bd51049..924ed42b 100644
--- a/wait.h
+++ b/wait.h
@@ -34,7 +34,7 @@
// http://connect.microsoft.com/VisualStudio/feedback/details/1581706
// and http://github.com/weidai11/cryptopp/issues/214
-#if (CRYPTOPP_MSC_VERSION >= 1900) && (CRYPTOPP_MSC_VERSION < 2000)
+#if (CRYPTOPP_MSC_VERSION >= 1900)
# pragma warning(push)
# pragma warning(disable: 4589)
#endif
@@ -226,7 +226,7 @@ private:
NAMESPACE_END
-#if (CRYPTOPP_MSC_VERSION >= 1900) && (CRYPTOPP_MSC_VERSION < 2000)
+#if (CRYPTOPP_MSC_VERSION >= 1900)
# pragma warning(pop)
#endif