summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-24 01:51:39 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-24 01:51:39 -0400
commit87d81372a9dfaca6dca4472cca4df61a3f4fd02b (patch)
tree5d2ce059c5ea53dab062b8432add17c48b029105 /test.cpp
parent02c20bbaec7bb9e73162ed07d2b694122a14a454 (diff)
downloadcryptopp-git-87d81372a9dfaca6dca4472cca4df61a3f4fd02b.tar.gz
Quiet deprecated warning on some library source files. The warning is intended to help users, not the library
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.cpp b/test.cpp
index d6c9fab4..fafef842 100644
--- a/test.cpp
+++ b/test.cpp
@@ -63,6 +63,15 @@
# pragma strict_gs_check (on)
#endif
+// Quiet deprecated warnings intended to benefit users.
+#if CRYPTOPP_MSC_VERSION
+# pragma warning(disable: 4996)
+#endif
+
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
USING_NAMESPACE(CryptoPP)
USING_NAMESPACE(std)