summaryrefslogtreecommitdiff
path: root/seckey.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-02 14:47:31 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-02 14:47:31 -0500
commit6eb2792bc26aebc83924e7e7be28c0444dca506c (patch)
tree8ae0b3aeaa20bdc828056c7cdb020d741dee093b /seckey.h
parent3fff6251aa0342da77185a0df48f3a13ff63d8a9 (diff)
downloadcryptopp-git-6eb2792bc26aebc83924e7e7be28c0444dca506c.tar.gz
Silence select conversion warnings (Issue 340)
Diffstat (limited to 'seckey.h')
-rw-r--r--seckey.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/seckey.h b/seckey.h
index b512a3a2..92e38395 100644
--- a/seckey.h
+++ b/seckey.h
@@ -1,21 +1,27 @@
// seckey.h - written and placed in the public domain by Wei Dai
-//! \file
+//! \file seckey.h
//! \brief Classes and functions for implementing secret key algorithms.
#ifndef CRYPTOPP_SECKEY_H
#define CRYPTOPP_SECKEY_H
#include "config.h"
+#include "cryptlib.h"
+#include "misc.h"
+#include "simple.h"
#if CRYPTOPP_MSC_VERSION
# pragma warning(push)
# pragma warning(disable: 4189)
#endif
-#include "cryptlib.h"
-#include "misc.h"
-#include "simple.h"
+// Issue 340
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wconversion"
+# pragma GCC diagnostic ignored "-Wsign-conversion"
+#endif
NAMESPACE_BEGIN(CryptoPP)
@@ -442,4 +448,9 @@ NAMESPACE_END
# pragma warning(pop)
#endif
+// Issue 340
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic pop
+#endif
+
#endif