summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-19 12:12:50 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-19 12:12:50 -0400
commite522574ddd723315f3cfdeec063d3dd079ea5bf6 (patch)
tree749211993b7682bceacb553e39fc964e150c901e
parentc33a56765416876d1673df0105f31cdda195ac0a (diff)
downloadcryptopp-git-e522574ddd723315f3cfdeec063d3dd079ea5bf6.tar.gz
Attempting to clear unknown pragma warning under GCC 5.1. This might be a compiler bug...
-rw-r--r--rw.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/rw.cpp b/rw.cpp
index 87146d08..c0985b10 100644
--- a/rw.cpp
+++ b/rw.cpp
@@ -11,12 +11,17 @@
#ifndef CRYPTOPP_IMPORTS
-#ifdef _OPENMP
-static const bool CRYPTOPP_RW_USE_OMP = false;
+#if GCC_DIAGNOSTIC_AWARE
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunknown-pragmas"
#endif
NAMESPACE_BEGIN(CryptoPP)
+#ifdef _OPENMP
+static const bool CRYPTOPP_RW_USE_OMP = false;
+#endif
+
void RWFunction::BERDecode(BufferedTransformation &bt)
{
BERSequenceDecoder seq(bt);
@@ -284,4 +289,8 @@ void InvertibleRWFunction::AssignFrom(const NameValuePairs &source)
NAMESPACE_END
+#if GCC_DIAGNOSTIC_AWARE
+# pragma GCC diagnostic pop
+#endif
+
#endif